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

Side by Side Diff: content/renderer/devtools/v8_sampling_profiler.cc

Issue 1521113002: DevTools: Initial implementation of slow CPU emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 4 landing Created 5 years 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 "content/renderer/devtools/v8_sampling_profiler.h" 5 #include "content/renderer/devtools/v8_sampling_profiler.h"
6 6
7 #if defined(OS_POSIX) 7 #if defined(OS_POSIX)
8 #include <signal.h> 8 #include <signal.h>
9 #define USE_SIGNALS 9 #define USE_SIGNALS
10 #endif 10 #endif
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 int sample_events) { 630 int sample_events) {
631 render_thread_sampler_->SetEventsToCollectForTest(code_added_events, 631 render_thread_sampler_->SetEventsToCollectForTest(code_added_events,
632 sample_events); 632 sample_events);
633 waitable_event_for_testing_.reset(new base::WaitableEvent(false, false)); 633 waitable_event_for_testing_.reset(new base::WaitableEvent(false, false));
634 } 634 }
635 635
636 void V8SamplingProfiler::WaitSamplingEventForTesting() { 636 void V8SamplingProfiler::WaitSamplingEventForTesting() {
637 waitable_event_for_testing_->Wait(); 637 waitable_event_for_testing_->Wait();
638 } 638 }
639 639
640 } // namespace blink 640 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/devtools/devtools_cpu_throttler.cc ('k') | third_party/WebKit/Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698