OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 to track application performance. Events consist of a name | 5 // Trace events to track application performance. Events consist of a name |
6 // a type (BEGIN, END or INSTANT), a tracking id and extra string data. | 6 // a type (BEGIN, END or INSTANT), a tracking id and extra string data. |
7 // In addition, the current process id, thread id, a timestamp down to the | 7 // In addition, the current process id, thread id, a timestamp down to the |
8 // microsecond and a file and line number of the calling location. | 8 // microsecond and a file and line number of the calling location. |
9 // | 9 // |
10 // The current implementation logs these events into a log file of the form | 10 // The current implementation logs these events into a log file of the form |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 bool enabled_; | 123 bool enabled_; |
124 FILE* log_file_; | 124 FILE* log_file_; |
125 Lock file_lock_; | 125 Lock file_lock_; |
126 TimeTicks trace_start_time_; | 126 TimeTicks trace_start_time_; |
127 scoped_ptr<base::ProcessMetrics> process_metrics_; | 127 scoped_ptr<base::ProcessMetrics> process_metrics_; |
128 RepeatingTimer<TraceLog> timer_; | 128 RepeatingTimer<TraceLog> timer_; |
129 }; | 129 }; |
130 | 130 |
131 } // namespace base | 131 } // namespace base |
132 | 132 |
133 #endif // BASE_TRACE_EVENT_H_ | 133 #endif // BASE_TRACE_EVENT_H_ |
OLD | NEW |