llvm-project/lldb/source/Utility
Antonio Afonso 78337420cd Add more information to the log timer dump
Summary:
The `log timer dump` is showing the time of the function itself minus any function that is called from this one that also happens to be timed. However, this is really not obvious and it also makes it hard to understand the time spent in total and also which children are actually taking the time.
To get a better reading of the timer dump I added the total, children (which I named child) and also the hit count. I used these timers to figure out a performance issue and only after adding this things were more clear to me.

It looks like this:
```
(lldb) log timer dump
35.447713617 sec (total: 35.449s; child: 0.001s; count: 1374) for void SymbolFileDWARF::Index()
29.717921481 sec (total: 29.718s; child: 0.000s; count: 8230500) for const lldb_private::ConstString &lldb_private::Mangled::GetDemangledName(lldb::LanguageType) const
21.049508865 sec (total: 24.683s; child: 3.633s; count: 1399) for void lldb_private::Symtab::InitNameIndexes()
...
```

Reviewers: clayborg, teemperor, labath, espindola, xiaobai

Reviewed By: labath, xiaobai

Subscribers: emaste, mgorny, arichardson, eraman, MaskRay, jdoerfert, labath, davide, teemperor, aprantl, erik.pilkington, jfb, abidh, lldb-commits

Tags: #lldb

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

llvm-svn: 361987
2019-05-29 16:31:32 +00:00
..
ARM64_DWARF_Registers.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ARM64_ehframe_Registers.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ARM_DWARF_Registers.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ARM_ehframe_Registers.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ArchSpec.cpp Simplify ArchSpec::IsMIPS() 2019-05-16 08:37:32 +00:00
Args.cpp [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
Baton.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Broadcaster.cpp [Utility] Small improvements to the Broadcaster class (NFC) 2019-05-24 04:41:47 +00:00
CMakeLists.txt [CMake] Move link dependencies where they are used. 2019-03-29 17:47:26 +00:00
CompletionRequest.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Connection.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ConstString.cpp Prevent unnecessary conversion from StringRef to C-string [NFC] 2019-04-14 14:01:49 +00:00
DataBufferHeap.cpp [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
DataBufferLLVM.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DataEncoder.cpp [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
DataExtractor.cpp [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
Environment.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Event.cpp [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
FileCollector.cpp [Reproducers] Add file provider 2019-01-29 20:36:38 +00:00
FileSpec.cpp Delete unnecessary copy ctors 2019-05-22 08:38:23 +00:00
IOObject.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
JSON.cpp Fix integer literals which are cast to bool 2019-05-24 00:44:33 +00:00
LLDBAssert.cpp Don't abort() in lldb_assert and document why. 2019-03-29 16:12:27 +00:00
Listener.cpp [Utility] Avoid a few unnecessary copies (NFC) 2019-05-23 20:05:21 +00:00
Log.cpp [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
Logging.cpp Add AST logging 2019-05-22 09:10:19 +00:00
NameMatches.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PPC64LE_DWARF_Registers.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PPC64LE_ehframe_Registers.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PPC64_DWARF_Registers.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ProcessInfo.cpp Fix file names in file headers. NFC 2019-05-13 04:42:32 +00:00
RegisterValue.cpp [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
RegularExpression.cpp [lldb] Make sure RegularExpression constructors always initialize member variables 2019-05-23 20:11:17 +00:00
Reproducer.cpp [Reproducer] Pass FileSpec by const-ref. (NFC) 2019-05-23 05:45:49 +00:00
ReproducerInstrumentation.cpp [Reproducers] Limit logging to calls that cross the API boundary. 2019-04-23 17:44:40 +00:00
Scalar.cpp [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
SelectHelper.cpp Fix integer literals which are cast to bool 2019-05-24 00:44:33 +00:00
SharingPtr.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
State.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Status.cpp Delete unnecessary copy ctors/copy assignment operators 2019-05-15 11:23:54 +00:00
Stream.cpp [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
StreamCallback.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
StreamGDBRemote.cpp [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
StreamString.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
StringExtractor.cpp [Utility] Modernize C-style cats 2019-05-23 05:12:11 +00:00
StringExtractorGDBRemote.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
StringLexer.cpp Delete unnecessary copy ctors/copy assignment operators 2019-05-15 11:23:54 +00:00
StringList.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
StructuredData.cpp Fix integer literals which are cast to bool 2019-05-24 00:44:33 +00:00
TildeExpressionResolver.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Timer.cpp Add more information to the log timer dump 2019-05-29 16:31:32 +00:00
UUID.cpp Add UUID::SetFromOptionalStringRef, use it in DynamicLoaderDarwin 2019-01-24 22:43:44 +00:00
UriParser.cpp [NFC] Remove ASCII lines from comments 2019-04-10 20:48:55 +00:00
UserID.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UserIDResolver.cpp Refactor user/group name resolving code 2019-03-04 18:48:00 +00:00
UuidCompatibility.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VASprintf.cpp Fix file names in file headers. NFC 2019-05-13 04:42:32 +00:00
VMRange.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00