| 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 #include <string.h> |
| 9 | 9 |
| 10 #include "base/format_macros.h" | 10 #include "base/format_macros.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 14 #include "base/synchronization/cancellation_flag.h" | 14 #include "base/synchronization/cancellation_flag.h" |
| 15 #include "base/thread_task_runner_handle.h" | |
| 16 #include "base/threading/platform_thread.h" | 15 #include "base/threading/platform_thread.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "base/trace_event/trace_event.h" | 17 #include "base/trace_event/trace_event.h" |
| 18 #include "base/trace_event/trace_event_argument.h" | 18 #include "base/trace_event/trace_event_argument.h" |
| 19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
| 20 #include "content/renderer/devtools/lock_free_circular_queue.h" | 20 #include "content/renderer/devtools/lock_free_circular_queue.h" |
| 21 #include "content/renderer/render_thread_impl.h" | 21 #include "content/renderer/render_thread_impl.h" |
| 22 #include "v8/include/v8.h" | 22 #include "v8/include/v8.h" |
| 23 | 23 |
| 24 #if defined(OS_POSIX) | 24 #if defined(OS_POSIX) |
| 25 #include <signal.h> | 25 #include <signal.h> |
| 26 #define USE_SIGNALS | 26 #define USE_SIGNALS |
| (...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 render_thread_sampler_->SetEventsToCollectForTest(code_added_events, | 640 render_thread_sampler_->SetEventsToCollectForTest(code_added_events, |
| 641 sample_events); | 641 sample_events); |
| 642 waitable_event_for_testing_.reset(new base::WaitableEvent(false, false)); | 642 waitable_event_for_testing_.reset(new base::WaitableEvent(false, false)); |
| 643 } | 643 } |
| 644 | 644 |
| 645 void V8SamplingProfiler::WaitSamplingEventForTesting() { | 645 void V8SamplingProfiler::WaitSamplingEventForTesting() { |
| 646 waitable_event_for_testing_->Wait(); | 646 waitable_event_for_testing_->Wait(); |
| 647 } | 647 } |
| 648 | 648 |
| 649 } // namespace content | 649 } // namespace content |
| OLD | NEW |