diff options
author | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-13 23:30:35 +0000 |
---|---|---|
committer | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-13 23:30:35 +0000 |
commit | 73e5f815c42a56fb5010863d63d1df3e1d1f097a (patch) | |
tree | b34888920373c79c5187c910324dd710ce21c5fc /gpu | |
parent | 8585fd865df3044b8215e4486698422562712e6c (diff) | |
download | chromium_src-73e5f815c42a56fb5010863d63d1df3e1d1f097a.zip chromium_src-73e5f815c42a56fb5010863d63d1df3e1d1f097a.tar.gz chromium_src-73e5f815c42a56fb5010863d63d1df3e1d1f097a.tar.bz2 |
Implemented threshold based trace events that only get added to the trace if the elapsed time between begin and end is greater than a specified time.
In order to reduce macro code duplication, created some additional internal helper macros.
Improved performance on the critical trace-disabled code path by deferring some member initialization. Removed the unused __LINE__/__FILE__ data.
Prefixed internal macros with "INTERNAL_" so that users ignore them. Moved all the internal macros below so that the user sees the relevant macros first.
BUG=81565
TEST=base_unittests
Review URL: http://codereview.chromium.org/7016012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85349 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/client/cmd_buffer_helper.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/client/cmd_buffer_helper.cc b/gpu/command_buffer/client/cmd_buffer_helper.cc index 655dc63..0ce7135 100644 --- a/gpu/command_buffer/client/cmd_buffer_helper.cc +++ b/gpu/command_buffer/client/cmd_buffer_helper.cc @@ -95,7 +95,7 @@ int32 CommandBufferHelper::InsertToken() { // Waits until the current token value is greater or equal to the value passed // in argument. void CommandBufferHelper::WaitForToken(int32 token) { - TRACE_EVENT0("gpu", "CommandBufferHelper::WaitForToken"); + TRACE_EVENT_IF_LONGER_THAN0(50, "gpu", "CommandBufferHelper::WaitForToken"); // Return immediately if corresponding InsertToken failed. if (token < 0) return; |