Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(750)

Unified Diff: base/debug/trace_event.cc

Issue 11557009: Remove support for TRACE_EVENT_IF_LONGER_THANx macros (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/debug/trace_event.cc
diff --git a/base/debug/trace_event.cc b/base/debug/trace_event.cc
index be77d5ac298287c376f897c41fd7b842330cb394..682e06563bb753bfcfba80e29fd07938eb524784 100644
--- a/base/debug/trace_event.cc
+++ b/base/debug/trace_event.cc
@@ -21,31 +21,6 @@ void TraceEndOnScopeClose::AddEventIfEnabled() {
p_data_->category_enabled,
p_data_->name, kNoEventId,
kZeroNumArgs, NULL, NULL, NULL,
- kNoThreshholdBeginId, kNoThresholdValue, TRACE_EVENT_FLAG_NONE);
- }
-}
-
-void TraceEndOnScopeCloseThreshold::Initialize(
- const unsigned char* category_enabled,
- const char* name,
- int threshold_begin_id,
- long long threshold) {
- data_.category_enabled = category_enabled;
- data_.name = name;
- data_.threshold_begin_id = threshold_begin_id;
- data_.threshold = threshold;
- p_data_ = &data_;
-}
-
-void TraceEndOnScopeCloseThreshold::AddEventIfEnabled() {
- // Only called when p_data_ is non-null.
- if (*p_data_->category_enabled) {
- TRACE_EVENT_API_ADD_TRACE_EVENT(
- TRACE_EVENT_PHASE_END,
- p_data_->category_enabled,
- p_data_->name, kNoEventId,
- kZeroNumArgs, NULL, NULL, NULL,
- p_data_->threshold_begin_id, p_data_->threshold,
TRACE_EVENT_FLAG_NONE);
}
}

Powered by Google App Engine
This is Rietveld 408576698