[Lldb-commits] [PATCH] D105741: [trace] Add `thread trace dump ctf -f ` command

2021-07-15 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: lldb/include/lldb/Target/TraceHTR.h:41 + size_t m_num_instructions; + std::unordered_map m_func_calls; + friend llvm::json::Value toJSON(const HTRBlockMetadata &metadata); wallace wrote: > jj10306 wrote: > > clayborg

[Lldb-commits] [PATCH] D105741: [trace] Add `thread trace dump ctf -f ` command

2021-07-14 Thread Jakob Johnson via Phabricator via lldb-commits
jj10306 marked 6 inline comments as done. jj10306 added inline comments. Comment at: lldb/include/lldb/Target/TraceHTR.h:3 +//-*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. clayborg wrote: > Maybe add a definition

[Lldb-commits] [PATCH] D105741: [trace] Add `thread trace dump ctf -f ` command

2021-07-14 Thread walter erquinigo via Phabricator via lldb-commits
wallace added inline comments. Comment at: lldb/include/lldb/Target/TraceHTR.h:29 +/// Metadata is initially populated in Layer 1 and merged as blocks are merged +class HTRBlockMetadata { +public: This is a very expensive structure if you are going to have for La

[Lldb-commits] [PATCH] D105741: [trace] Add `thread trace dump ctf -f ` command

2021-07-13 Thread walter erquinigo via Phabricator via lldb-commits
wallace added inline comments. Comment at: lldb/include/lldb/Target/TraceHTR.h:31 +public: + HTRBlockMetadata(Thread &thread, TraceInstruction curr_instruction, + llvm::Optional next_instruction); const TraceInstruction &curr_instruction to a

[Lldb-commits] [PATCH] D105741: [trace] Add `thread trace dump ctf -f ` command

2021-07-12 Thread Greg Clayton via Phabricator via lldb-commits
clayborg requested changes to this revision. clayborg added inline comments. This revision now requires changes to proceed. Comment at: lldb/include/lldb/Target/TraceHTR.h:1-2 +//===-- TraceHTR.h -*- C++ +//-*-===// +//

[Lldb-commits] [PATCH] D105741: [trace] Add `thread trace dump ctf -f ` command

2021-07-09 Thread Jakob Johnson via Phabricator via lldb-commits
jj10306 created this revision. jj10306 added reviewers: wallace, clayborg. Herald added subscribers: dang, mgorny. jj10306 requested review of this revision. Herald added a project: LLDB. Herald added a subscriber: lldb-commits. This diff enables visualization of Intel PT traces by converting a su