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

Unified Diff: base/trace_event/trace_event_impl.cc

Issue 1860653002: CL for testing on Win. Base URL: https://chromium.googlesource.com/chromium/src.git@task_file
Patch Set: more logs. Created 4 years, 8 months 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
« no previous file with comments | « base/threading/sequenced_worker_pool.cc ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/trace_event/trace_event_impl.cc
diff --git a/base/trace_event/trace_event_impl.cc b/base/trace_event/trace_event_impl.cc
index 4ab0d358f9d202dd31ba6418b098da6751348e05..2982b000b76a7adbae2b150492c3653ab4d1afd4 100644
--- a/base/trace_event/trace_event_impl.cc
+++ b/base/trace_event/trace_event_impl.cc
@@ -185,7 +185,10 @@ void TraceEvent::Reset() {
void TraceEvent::UpdateDuration(const TimeTicks& now,
const ThreadTicks& thread_now) {
- DCHECK_EQ(duration_.ToInternalValue(), -1);
+ if (duration_.ToInternalValue() != -1) {
+ LOG(ERROR) << "ssid duration is already set " << flags_ << " " << timestamp_ << " " << name_ << " " << (parameter_copy_storage_.get() ? *parameter_copy_storage_.get() : "no param") << " " << TraceLog::GetCategoryGroupName(category_group_enabled_);
+ }
+ CHECK_EQ(duration_.ToInternalValue(), -1);
duration_ = now - timestamp_;
// |thread_timestamp_| can be empty if the thread ticks clock wasn't
« no previous file with comments | « base/threading/sequenced_worker_pool.cc ('k') | base/trace_event/trace_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698