OSDN Git Service

[lldb] Ad os_signpost support to lldb_private::Timer
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 6 Jan 2021 22:37:17 +0000 (14:37 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 6 Jan 2021 23:16:09 +0000 (15:16 -0800)
commit6d94eeadd28af4d488b5875778a3ebfa0d749b52
tree24ad1ba624c3aed27527afe9dc5894d758ab794a
parentb37de2afa30fe4312aa9b87b11208bd7e05c8fa1
[lldb] Ad os_signpost support to lldb_private::Timer

Emit os_signposts when supported from LLDB's timer class. A vast amount
of performance sensitive places in LLDB are already instrumented with
the Timer class.

By emitting signposts we can examine this information in Instruments. I
recommend looking at Daniel's differential for why this is so powerful:
https://reviews.llvm.org/D52954.

Differential revision: https://reviews.llvm.org/D93657
lldb/include/lldb/Utility/Timer.h
lldb/source/Utility/Timer.cpp