summaryrefslogtreecommitdiffstats
path: root/base/trace_event
diff options
context:
space:
mode:
authorrmcilroy <rmcilroy@chromium.org>2015-02-12 15:27:40 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-12 23:28:34 +0000
commit75c2b017bd1ab668d7f20fde6af6f5506a842c02 (patch)
tree011a718c1ecbea454abc80e03ca00369d5d0b029 /base/trace_event
parentbea94bfec1e16564d5c259653fad5d05dcee4373 (diff)
downloadchromium_src-75c2b017bd1ab668d7f20fde6af6f5506a842c02.zip
chromium_src-75c2b017bd1ab668d7f20fde6af6f5506a842c02.tar.gz
chromium_src-75c2b017bd1ab668d7f20fde6af6f5506a842c02.tar.bz2
Add DeadlineOverrun step to the RendererSchedulerIdlePeriod trace event.
Adds a deadline overrun step to the RendererSchedulerIdlePeriod trace event to make it obvious when an idle period lasts longer than its deadline. Also adds a TRACE_EVENT_ASYNC_STEP_INTO_WITH_TIMESTAMP0 which is required to add the step at the appropriate time. BUG=455713 Committed: https://crrev.com/a38b72b5f1ec147bb961e9045ca0c165f428d5e4 Cr-Commit-Position: refs/heads/master@{#315042} Review URL: https://codereview.chromium.org/908473002 Cr-Commit-Position: refs/heads/master@{#316080}
Diffstat (limited to 'base/trace_event')
-rw-r--r--base/trace_event/trace_event.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/base/trace_event/trace_event.h b/base/trace_event/trace_event.h
index c4fe801..07a2afa 100644
--- a/base/trace_event/trace_event.h
+++ b/base/trace_event/trace_event.h
@@ -596,6 +596,15 @@
category_group, name, id, TRACE_EVENT_FLAG_NONE, "step", step, \
arg1_name, arg1_val)
+// Similar to TRACE_EVENT_ASYNC_STEP_INTOx but with a custom |at| timestamp
+// provided.
+#define TRACE_EVENT_ASYNC_STEP_INTO_WITH_TIMESTAMP0(category_group, name, \
+ id, step, timestamp) \
+ INTERNAL_TRACE_EVENT_ADD_WITH_ID_TID_AND_TIMESTAMP( \
+ TRACE_EVENT_PHASE_ASYNC_STEP_INTO, category_group, name, id, \
+ static_cast<int>(base::PlatformThread::CurrentId()), \
+ timestamp, TRACE_EVENT_FLAG_NONE, "step", step)
+
// Records a single ASYNC_STEP_PAST event for |step| immediately. If the
// category is not enabled, then this does nothing. The |name| and |id| must
// match the ASYNC_BEGIN event above. The |step| param identifies this step