Improved perf logging.

This commit is contained in:
Pedro Pinto committed 2018-12-09 19:14:53 +00:00
1 parent 30ed5b296e
commit 077505509a
19 files changed
+357 -1007

No files matched your search

+14 -3
View File
@@ -7,10 +7,21 @@
namespace bts {
namespace cmd {
struct PerfLogEntry {
utils::TimeStamp ts;
const char *channel;
const char *entry_kind;
const char *txt_1;
uint64_t uint64_1;
pthread_t thread_id;
utils::TimeStamp ts2;
uint32_t sn;
uint32_t uint32_1;
};
int QuickTest::execute(std::vector<std::string> const &) {
trace::PerfLog l;
l.log(trace::CorID{"sim", 0}, "this", 1, 2, "txt", 3);
l.store_log_entries();
std::cout << sizeof(pthread_t) << "\n";
std::cout << sizeof(PerfLogEntry) << "\n";
return 0;
}