[all-commits] [llvm/llvm-project] 22144e: [LLDB][Data Formatters] Calculate average and tota...

Jacob Lalonde via All-commits all-commits at lists.llvm.org
Tue Sep 10 09:59:04 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22144e20cbd237a432fdc4106abe3960555aff42
      https://github.com/llvm/llvm-project/commit/22144e20cbd237a432fdc4106abe3960555aff42
  Author: Jacob Lalonde <jalalonde at fb.com>
  Date:   2024-09-10 (Tue, 10 Sep 2024)

  Changed paths:
    M lldb/include/lldb/DataFormatters/TypeSummary.h
    M lldb/include/lldb/Target/Statistics.h
    M lldb/include/lldb/Target/Target.h
    M lldb/source/Core/ValueObject.cpp
    M lldb/source/DataFormatters/TypeSummary.cpp
    M lldb/source/Target/Statistics.cpp
    M lldb/source/Target/Target.cpp
    A lldb/test/API/commands/statistics/basic/BoxFormatter.py
    M lldb/test/API/commands/statistics/basic/Makefile
    M lldb/test/API/commands/statistics/basic/TestStats.py
    R lldb/test/API/commands/statistics/basic/main.c
    A lldb/test/API/commands/statistics/basic/main.cpp
    M lldb/unittests/Target/CMakeLists.txt
    A lldb/unittests/Target/SummaryStatisticsTest.cpp

  Log Message:
  -----------
  [LLDB][Data Formatters] Calculate average and total time for summary providers within lldb (#102708)

This PR adds a statistics provider cache, which allows an individual
target to keep a rolling tally of it's total time and number of
invocations for a given summary provider. This information is then
available in statistics dump to help slow summary providers, and gleam
more into insight into LLDB's time use.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list