[Lldb-commits] [PATCH] D105717: [trace] [intel pt] Create a "thread trace dump stats" command

hanbing wang via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Jul 19 20:08:02 PDT 2021


hanbingwang updated this revision to Diff 359994.
hanbingwang added a comment.

{F18030885 <https://reviews.llvm.org/F18030885>}add two spaces before the string "Raw trace size : xxx"; add new line between each thread.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D105717/new/

https://reviews.llvm.org/D105717

Files:
  lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp


Index: lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
===================================================================
--- lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
+++ lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
@@ -110,12 +110,12 @@
 
 void TraceIntelPT::DumpTraceInfo(Thread &thread, Stream &s, bool verbose) {
   Optional<size_t> raw_size = GetRawTraceSize(thread);
-  s.Printf("thread #%u: tid = %" PRIu64, thread.GetIndexID(), thread.GetID());
+  s.Printf("\nthread #%u: tid = %" PRIu64, thread.GetIndexID(), thread.GetID());
   if (!raw_size) {
     s.Printf(", not traced\n");
     return;
   }
-  s.Printf("\nRaw trace size: %zu bytes\n", *raw_size);
+  s.Printf("\n  Raw trace size: %zu bytes\n", *raw_size);
   return;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105717.359994.patch
Type: text/x-patch
Size: 761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210720/0e61e2e6/attachment.bin>


More information about the lldb-commits mailing list