[all-commits] [llvm/llvm-project] b532dd: [trace] Add an option to save a compact trace bundle

walter erquinigo via All-commits all-commits at lists.llvm.org
Wed Jul 13 11:43:44 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b532dd545fcd03562b324d99eb28523f8510e821
      https://github.com/llvm/llvm-project/commit/b532dd545fcd03562b324d99eb28523f8510e821
  Author: Walter Erquinigo <wallace at fb.com>
  Date:   2022-07-13 (Wed, 13 Jul 2022)

  Changed paths:
    M lldb/bindings/interface/SBTrace.i
    M lldb/include/lldb/API/SBTrace.h
    M lldb/include/lldb/Target/Trace.h
    M lldb/packages/Python/lldbsuite/test/tools/intelpt/intelpt_testcase.py
    M lldb/source/API/SBTrace.cpp
    M lldb/source/Commands/CommandObjectProcess.cpp
    M lldb/source/Commands/CommandObjectTrace.cpp
    M lldb/source/Commands/Options.td
    M lldb/source/Plugins/Trace/intel-pt/PerfContextSwitchDecoder.cpp
    M lldb/source/Plugins/Trace/intel-pt/PerfContextSwitchDecoder.h
    M lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.cpp
    M lldb/source/Plugins/Trace/intel-pt/TraceIntelPT.h
    M lldb/source/Plugins/Trace/intel-pt/TraceIntelPTBundleSaver.cpp
    M lldb/source/Plugins/Trace/intel-pt/TraceIntelPTBundleSaver.h
    M lldb/source/Plugins/Trace/intel-pt/TraceIntelPTOptions.td
    M lldb/test/API/commands/trace/TestTraceLoad.py
    M lldb/test/API/commands/trace/TestTraceSave.py

  Log Message:
  -----------
  [trace] Add an option to save a compact trace bundle

A trace bundle contains many trace files, and, in the case of intel pt, the
largest files are often the context switch traces because they are not
compressed by default. As a way to improve this, I'm adding a --compact option
to the `trace save` command that filters out unwanted processes from the
context switch traces. Eventually we can do the same for intel pt traces as
well.

Differential Revision: https://reviews.llvm.org/D129239




More information about the All-commits mailing list