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

Side by Side Diff: base/debug/trace_event_impl.h

Issue 374043002: Fix tracing 64-bit to 32-bit truncations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/debug/trace_event.h ('k') | base/debug/trace_event_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 5
6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_ 6 #ifndef BASE_DEBUG_TRACE_EVENT_IMPL_H_
7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_ 7 #define BASE_DEBUG_TRACE_EVENT_IMPL_H_
8 8
9 #include <stack> 9 #include <stack>
10 #include <string> 10 #include <string>
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 // This allows constructor and destructor to be private and usable only 609 // This allows constructor and destructor to be private and usable only
610 // by the Singleton class. 610 // by the Singleton class.
611 friend struct DefaultSingletonTraits<TraceLog>; 611 friend struct DefaultSingletonTraits<TraceLog>;
612 612
613 // Enable/disable each category group based on the current mode_, 613 // Enable/disable each category group based on the current mode_,
614 // category_filter_, event_callback_ and event_callback_category_filter_. 614 // category_filter_, event_callback_ and event_callback_category_filter_.
615 // Enable the category group in the enabled mode if category_filter_ matches 615 // Enable the category group in the enabled mode if category_filter_ matches
616 // the category group, or event_callback_ is not null and 616 // the category group, or event_callback_ is not null and
617 // event_callback_category_filter_ matches the category group. 617 // event_callback_category_filter_ matches the category group.
618 void UpdateCategoryGroupEnabledFlags(); 618 void UpdateCategoryGroupEnabledFlags();
619 void UpdateCategoryGroupEnabledFlag(int category_index); 619 void UpdateCategoryGroupEnabledFlag(size_t category_index);
620 620
621 // Configure synthetic delays based on the values set in the current 621 // Configure synthetic delays based on the values set in the current
622 // category filter. 622 // category filter.
623 void UpdateSyntheticDelaysFromCategoryFilter(); 623 void UpdateSyntheticDelaysFromCategoryFilter();
624 624
625 class ThreadLocalEventBuffer; 625 class ThreadLocalEventBuffer;
626 class OptionalAutoLock; 626 class OptionalAutoLock;
627 627
628 TraceLog(); 628 TraceLog();
629 ~TraceLog(); 629 ~TraceLog();
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 scoped_refptr<MessageLoopProxy> flush_message_loop_proxy_; 732 scoped_refptr<MessageLoopProxy> flush_message_loop_proxy_;
733 subtle::AtomicWord generation_; 733 subtle::AtomicWord generation_;
734 734
735 DISALLOW_COPY_AND_ASSIGN(TraceLog); 735 DISALLOW_COPY_AND_ASSIGN(TraceLog);
736 }; 736 };
737 737
738 } // namespace debug 738 } // namespace debug
739 } // namespace base 739 } // namespace base
740 740
741 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_ 741 #endif // BASE_DEBUG_TRACE_EVENT_IMPL_H_
OLDNEW
« no previous file with comments | « base/debug/trace_event.h ('k') | base/debug/trace_event_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698