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

Side by Side Diff: mojo/public/cpp/environment/lib/scoped_task_tracking.cc

Issue 1426843004: Remove the task tracking stuff in the bindings. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "mojo/public/cpp/environment/lib/scoped_task_tracking.h"
6
7 #include "mojo/public/cpp/environment/environment.h"
8
9 namespace mojo {
10 namespace internal {
11
12 ScopedTaskTracking::ScopedTaskTracking(const char* function_name,
13 const char* file_name,
14 int line,
15 const void* program_counter)
16 : id_(Environment::GetDefaultTaskTracker()->StartTracking(
17 function_name,
18 file_name,
19 line,
20 program_counter)) {
21 }
22
23 ScopedTaskTracking::ScopedTaskTracking(const char* function_name,
24 const char* file_name,
25 int line)
26 : id_(Environment::GetDefaultTaskTracker()->StartTracking(function_name,
27 file_name,
28 line,
29 nullptr)) {
30 }
31
32 ScopedTaskTracking::~ScopedTaskTracking() {
33 Environment::GetDefaultTaskTracker()->EndTracking(id_);
34 }
35
36 } // namespace internal
37 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/environment/lib/scoped_task_tracking.h ('k') | mojo/public/cpp/environment/task_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698