| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |