Commit 08120f3e authored by Tao Bai's avatar Tao Bai Committed by Commit Bot

Rename content_capture category name.

Bug: 1006418
Change-Id: I9485ecf2586ef1527bc3dbc664ce6603cfb95570
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1838687Reviewed-by: default avatarXianzhu Wang <wangxianzhu@chromium.org>
Reviewed-by: default avatarSami Kyöstilä <skyostil@chromium.org>
Commit-Queue: Sami Kyöstilä <skyostil@chromium.org>
Cr-Commit-Position: refs/heads/master@{#705989}
parent 2d2bf904
......@@ -15,6 +15,9 @@
// your code and you get a static assert, this is the right place to register
// the name. If the name is going to be used only for testing, please add it to
// |kIgnoredCategoriesForTesting| instead.
//
// Prefer to use '_' to separate word of category name, like content_capture.
//
// Parameter |X| must be a *macro* that takes a single |name| string argument,
// denoting a category name.
#define INTERNAL_TRACE_LIST_BUILTIN_CATEGORIES(X) \
......@@ -52,7 +55,7 @@
X("cma") \
X("compositor") \
X("content") \
X("content-capture") \
X("content_capture") \
X("devtools") \
X("devtools.timeline") \
X("devtools.timeline.async") \
......
......@@ -196,7 +196,7 @@ bool ContentCaptureTask::RunInternal() {
}
void ContentCaptureTask::Run(TimerBase*) {
TRACE_EVENT0("content-capture", "RunTask");
TRACE_EVENT0("content_capture", "RunTask");
is_scheduled_ = false;
if (!RunInternal()) {
ScheduleInternal(ScheduleReason::kRetryTask);
......@@ -229,7 +229,7 @@ void ContentCaptureTask::ScheduleInternal(ScheduleReason reason) {
delay_task_->StartOneShot(delay, FROM_HERE);
is_scheduled_ = true;
TRACE_EVENT_INSTANT1("content-capture", "ScheduleTask",
TRACE_EVENT_INSTANT1("content_capture", "ScheduleTask",
TRACE_EVENT_SCOPE_THREAD, "reason", reason);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment