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

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

Issue 8772049: Fix Aura build break. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Trace events are for tracking application performance and resource usage. 5 // Trace events are for tracking application performance and resource usage.
6 // Macros are provided to track: 6 // Macros are provided to track:
7 // Begin and end of function calls 7 // Begin and end of function calls
8 // Counters 8 // Counters
9 // 9 //
10 // Events are issued against categories. Whereas LOG's 10 // Events are issued against categories. Whereas LOG's
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 632
633 Type type_; 633 Type type_;
634 Value value_; 634 Value value_;
635 }; 635 };
636 636
637 // TraceID encapsulates an ID that can either be an integer or pointer. Pointers 637 // TraceID encapsulates an ID that can either be an integer or pointer. Pointers
638 // are mangled with the Process ID so that they are unlikely to collide when the 638 // are mangled with the Process ID so that they are unlikely to collide when the
639 // same pointer is used on different processes. 639 // same pointer is used on different processes.
640 class BASE_EXPORT TraceID { 640 class BASE_EXPORT TraceID {
641 public: 641 public:
642 TraceID() : data_(NULL) {} 642 TraceID() : data_(0u) {}
643 TraceID(void* rhs); 643 TraceID(void* rhs);
644 TraceID(unsigned long long rhs) : data_(static_cast<uint64>(rhs)) {} 644 TraceID(unsigned long long rhs) : data_(static_cast<uint64>(rhs)) {}
645 TraceID(unsigned long rhs) : data_(static_cast<uint64>(rhs)) {} 645 TraceID(unsigned long rhs) : data_(static_cast<uint64>(rhs)) {}
646 TraceID(unsigned int rhs) : data_(static_cast<uint64>(rhs)) {} 646 TraceID(unsigned int rhs) : data_(static_cast<uint64>(rhs)) {}
647 TraceID(long long rhs) : data_(static_cast<uint64>(rhs)) {} 647 TraceID(long long rhs) : data_(static_cast<uint64>(rhs)) {}
648 TraceID(long rhs) : data_(static_cast<uint64>(rhs)) {} 648 TraceID(long rhs) : data_(static_cast<uint64>(rhs)) {}
649 TraceID(int rhs) : data_(static_cast<uint64>(rhs)) {} 649 TraceID(int rhs) : data_(static_cast<uint64>(rhs)) {}
650 650
651 uint64 data() const { return data_; } 651 uint64 data() const { return data_; }
652 652
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 Data* p_data_; 974 Data* p_data_;
975 Data data_; 975 Data data_;
976 }; 976 };
977 977
978 } // namespace internal 978 } // namespace internal
979 979
980 } // namespace debug 980 } // namespace debug
981 } // namespace base 981 } // namespace base
982 982
983 #endif // BASE_DEBUG_TRACE_EVENT_H_ 983 #endif // BASE_DEBUG_TRACE_EVENT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698