]> git.cworth.org Git - apitrace/commit
common: Cleanup backtrace.
authorAlexander Monakov <amonakov@ispras.ru>
Mon, 13 May 2013 14:35:44 +0000 (15:35 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 13 May 2013 14:35:44 +0000 (15:35 +0100)
commit825bb152a877152c8fd77fd5edc75b5c027023f0
treee6de87ee783cfb71942ab1a0343281dd7c74b2b3
parent9d1b1c55ac7204dbbedee97ce52c2cd1def2fd5b
common: Cleanup backtrace.

There was a bool field that was caching results of 'is_backtrace_needed'
lookups.   Now that field is gone, and 'is_backtrace_needed' is called
repeatedly.  I guess it's not that bad (it boils down to a lookup in an
std::set), but that function was also printing notices for functions
with enabled stack trace recording, and now those messages are printed
repeatedly as well.  The following patch removes the notices completely
and slightly cleans up the surrounding code.
common/trace_backtrace.cpp