| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "third_party/mojo/src/mojo/public/cpp/environment/lib/scoped_task_track
ing.h" | 5 #include "mojo/public/cpp/environment/lib/scoped_task_tracking.h" |
| 6 | 6 |
| 7 #include "third_party/mojo/src/mojo/public/cpp/environment/environment.h" | 7 #include "mojo/public/cpp/environment/environment.h" |
| 8 | 8 |
| 9 namespace mojo { | 9 namespace mojo { |
| 10 namespace internal { | 10 namespace internal { |
| 11 | 11 |
| 12 ScopedTaskTracking::ScopedTaskTracking(const char* function_name, | 12 ScopedTaskTracking::ScopedTaskTracking(const char* function_name, |
| 13 const char* file_name, | 13 const char* file_name, |
| 14 int line, | 14 int line, |
| 15 const void* program_counter) | 15 const void* program_counter) |
| 16 : id_(Environment::GetDefaultTaskTracker()->StartTracking( | 16 : id_(Environment::GetDefaultTaskTracker()->StartTracking( |
| 17 function_name, | 17 function_name, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 28 line, | 28 line, |
| 29 nullptr)) { | 29 nullptr)) { |
| 30 } | 30 } |
| 31 | 31 |
| 32 ScopedTaskTracking::~ScopedTaskTracking() { | 32 ScopedTaskTracking::~ScopedTaskTracking() { |
| 33 Environment::GetDefaultTaskTracker()->EndTracking(id_); | 33 Environment::GetDefaultTaskTracker()->EndTracking(id_); |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // namespace internal | 36 } // namespace internal |
| 37 } // namespace mojo | 37 } // namespace mojo |
| OLD | NEW |