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 #include <stdint.h> | 7 #include <stdint.h> |
| 8 #include <string.h> |
8 | 9 |
9 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
10 #include "base/location.h" | 11 #include "base/location.h" |
11 #include "base/macros.h" | 12 #include "base/macros.h" |
12 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
13 #include "base/synchronization/cancellation_flag.h" | 14 #include "base/synchronization/cancellation_flag.h" |
14 #include "base/thread_task_runner_handle.h" | 15 #include "base/thread_task_runner_handle.h" |
15 #include "base/threading/platform_thread.h" | 16 #include "base/threading/platform_thread.h" |
16 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
17 #include "base/trace_event/trace_event_argument.h" | 18 #include "base/trace_event/trace_event_argument.h" |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 render_thread_sampler_->SetEventsToCollectForTest(code_added_events, | 636 render_thread_sampler_->SetEventsToCollectForTest(code_added_events, |
636 sample_events); | 637 sample_events); |
637 waitable_event_for_testing_.reset(new base::WaitableEvent(false, false)); | 638 waitable_event_for_testing_.reset(new base::WaitableEvent(false, false)); |
638 } | 639 } |
639 | 640 |
640 void V8SamplingProfiler::WaitSamplingEventForTesting() { | 641 void V8SamplingProfiler::WaitSamplingEventForTesting() { |
641 waitable_event_for_testing_->Wait(); | 642 waitable_event_for_testing_->Wait(); |
642 } | 643 } |
643 | 644 |
644 } // namespace content | 645 } // namespace content |
OLD | NEW |