| OLD | NEW |
| 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 #include "base/debug/trace_event.h" | 5 #include "base/debug/trace_event.h" |
| 6 | 6 |
| 7 #include <strstream> | 7 #include <strstream> |
| 8 | 8 |
| 9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 NULL, | 263 NULL, |
| 264 0); | 264 0); |
| 265 | 265 |
| 266 ExpectEvent(kTraceEventClass32, | 266 ExpectEvent(kTraceEventClass32, |
| 267 kTraceEventTypeBegin, | 267 kTraceEventTypeBegin, |
| 268 kEmpty, 0, | 268 kEmpty, 0, |
| 269 kId, | 269 kId, |
| 270 kEmpty, 0); | 270 kEmpty, 0); |
| 271 | 271 |
| 272 TraceEventETWProvider::Trace(NULL, | 272 TraceEventETWProvider::Trace(NULL, |
| 273 -1, | 273 TraceEventETWProvider::kUseStrlen, |
| 274 TRACE_EVENT_PHASE_END, | 274 TRACE_EVENT_PHASE_END, |
| 275 kId, | 275 kId, |
| 276 NULL, | 276 NULL, |
| 277 -1); | 277 TraceEventETWProvider::kUseStrlen); |
| 278 | 278 |
| 279 ExpectEvent(kTraceEventClass32, | 279 ExpectEvent(kTraceEventClass32, |
| 280 kTraceEventTypeEnd, | 280 kTraceEventTypeEnd, |
| 281 kEmpty, 0, | 281 kEmpty, 0, |
| 282 kId, | 282 kId, |
| 283 kEmpty, 0); | 283 kEmpty, 0); |
| 284 | 284 |
| 285 PlayLog(); | 285 PlayLog(); |
| 286 } | 286 } |
| 287 | 287 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 310 kTraceEventTypeInstant, | 310 kTraceEventTypeInstant, |
| 311 kName, strlen(kName), | 311 kName, strlen(kName), |
| 312 kId, | 312 kId, |
| 313 kExtra, strlen(kExtra)); | 313 kExtra, strlen(kExtra)); |
| 314 | 314 |
| 315 PlayLog(); | 315 PlayLog(); |
| 316 } | 316 } |
| 317 | 317 |
| 318 } // namespace debug | 318 } // namespace debug |
| 319 } // namespace base | 319 } // namespace base |
| OLD | NEW |