tracing: split out the CategoryRegistry from the TraceLog Changes introduced by this CL: - Split out the category logic out of the TraceLog into CategoryRegistry. Makes it easier to unbundle, reuse and reason about. - Get rid of the parallel arrays for tracking names, filters and state of each category and switch them to one array of struct. This not only makes the code easier to read, but also opens the way for having categories defined at compile time that don't need any lazy initialization of the "enabled" ptr. - Naming cleanup: the term "category group" has always been confusing. All it does is reflecting a subtle implementation detail (the fact that a category name can be "cat1,cat2") which is quite irrelevant from a functional viewpoint. BUG=659689 Review-Url: https://codereview.chromium.org/2452063003 Cr-Original-Commit-Position: refs/heads/master@{#431300} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: 094ac7f87d78a80e3934e148855a908977559166
diff --git a/tools/gn/bootstrap/bootstrap.py b/tools/gn/bootstrap/bootstrap.py index 78e508d..90adca2 100755 --- a/tools/gn/bootstrap/bootstrap.py +++ b/tools/gn/bootstrap/bootstrap.py
@@ -480,6 +480,7 @@ 'base/time/time.cc', 'base/timer/elapsed_timer.cc', 'base/timer/timer.cc', + 'base/trace_event/category_registry.cc', 'base/trace_event/heap_profiler_allocation_context.cc', 'base/trace_event/heap_profiler_allocation_context_tracker.cc', 'base/trace_event/heap_profiler_allocation_register.cc',