diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2024-02-27 13:53:52 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2024-03-27 13:47:54 -0700 |
commit | 710276ed85e8a5880ca73da149a94eb9dac49e32 (patch) | |
tree | 2089a9a1e8eb71d1e66f0f18535d973e4267cbf1 /src/corelib/io/qsettings.h | |
parent | d9f71041661146c7bea0bb0f53a14a6cbce596f3 (diff) |
Logging: capture the backtrace closer to the user's entry point
Instead of deep inside the processing of the message pattern tokens.
This reduces the number of uninlineable functions in release builds to
2. Experimentation shows that even in debug mode our overhead to
backtrace() is just 2, despite the debugger's backtrace showing 3 frames
-- the debugger is using QtCore's debug symbols and does know about the
inlined function.
As a nice side-effect, we capture the backtrace only once per message,
not once per %{backtrace} token in the QT_MESSAGE_PATTERN.
Change-Id: I01ec3c774d9943adb903fffd17b7d6de09167620
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/corelib/io/qsettings.h')
0 files changed, 0 insertions, 0 deletions