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

Side by Side Diff: components/scheduler/base/task_queue_manager.cc

Issue 1784133002: [tracing] Adding task information to heap profiler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix macros again and the builds. Created 4 years, 8 months 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/scheduler/base/task_queue_manager.h" 5 #include "components/scheduler/base/task_queue_manager.h"
6 6
7 #include <queue> 7 #include <queue>
8 #include <set> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/metrics/histogram_macros.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "base/trace_event/trace_event.h"
ssid 2016/03/30 17:51:48 This because the trace event was moved from task_a
12 #include "components/scheduler/base/real_time_domain.h" 13 #include "components/scheduler/base/real_time_domain.h"
13 #include "components/scheduler/base/task_queue_impl.h" 14 #include "components/scheduler/base/task_queue_impl.h"
14 #include "components/scheduler/base/task_queue_manager_delegate.h" 15 #include "components/scheduler/base/task_queue_manager_delegate.h"
15 #include "components/scheduler/base/task_queue_selector.h" 16 #include "components/scheduler/base/task_queue_selector.h"
16 #include "components/scheduler/base/work_queue.h" 17 #include "components/scheduler/base/work_queue.h"
17 #include "components/scheduler/base/work_queue_sets.h" 18 #include "components/scheduler/base/work_queue_sets.h"
18 19
19 namespace scheduler { 20 namespace scheduler {
20 21
21 namespace { 22 namespace {
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 internal::WorkQueue* work_queue) { 407 internal::WorkQueue* work_queue) {
407 DCHECK(main_thread_checker_.CalledOnValidThread()); 408 DCHECK(main_thread_checker_.CalledOnValidThread());
408 DCHECK(!work_queue->Empty()); 409 DCHECK(!work_queue->Empty());
409 if (observer_) { 410 if (observer_) {
410 observer_->OnTriedToExecuteBlockedTask(*work_queue->task_queue(), 411 observer_->OnTriedToExecuteBlockedTask(*work_queue->task_queue(),
411 *work_queue->GetFrontTask()); 412 *work_queue->GetFrontTask());
412 } 413 }
413 } 414 }
414 415
415 } // namespace scheduler 416 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698