Skip to content

Commit 88c9683

Browse files
Remove placeholder code, fix liniting issues
1 parent 6b3810d commit 88c9683

6 files changed

Lines changed: 3 additions & 56 deletions

File tree

cli/main.cpp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
11
#include <iostream>
2-
#include <span>
3-
#include <string_view>
4-
#include <vector>
2+
#include <utility>
53

6-
#include "cpuscope_lib.hpp"
74
#include "perf_event.hpp"
85

96
using namespace cpuscope;
107

11-
int main(int argc, char* argv[])
8+
int main(int /*argc*/, char** /*argv[]*/)
129
{
13-
std::vector<std::string_view> args;
14-
args.reserve(argc);
15-
16-
const std::span<char*> arguments(argv, argc);
17-
for (char* arg : arguments)
18-
{
19-
args.emplace_back(arg);
20-
}
21-
22-
std::cout << cpuscope::format_message(args) << '\n';
23-
2410
PerfEvent::LinuxSysCalls sysCalls;
2511
PerfEvent::Config config;
2612
config.scope = PerfEvent::Scope::CPU;

lib/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
add_library(cpuscope_lib STATIC
2-
src/cpuscope_lib.cpp
32
src/perf_event.cpp
43
)
54

lib/include/cpuscope_lib.hpp

Lines changed: 0 additions & 16 deletions
This file was deleted.

lib/include/version.hpp

Lines changed: 0 additions & 13 deletions
This file was deleted.

lib/src/cpuscope_lib.cpp

Lines changed: 0 additions & 10 deletions
This file was deleted.

lib/src/perf_event.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <sys/types.h>
66
#include <unistd.h>
77

8+
#include <cerrno>
89
#include <cstdint>
910
#include <cstring>
1011
#include <optional>

0 commit comments

Comments
 (0)