| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/profiler_service.h" | 5 #include "vm/profiler_service.h" |
| 6 | 6 |
| 7 #include "vm/growable_array.h" | 7 #include "vm/growable_array.h" |
| 8 #include "vm/native_symbol.h" | 8 #include "vm/native_symbol.h" |
| 9 #include "vm/object.h" | 9 #include "vm/object.h" |
| 10 #include "vm/os.h" | 10 #include "vm/os.h" |
| (...skipping 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2206 { | 2206 { |
| 2207 MutexLocker profiler_data_lock(isolate->profiler_data_mutex()); | 2207 MutexLocker profiler_data_lock(isolate->profiler_data_mutex()); |
| 2208 IsolateProfilerData* profiler_data = isolate->profiler_data(); | 2208 IsolateProfilerData* profiler_data = isolate->profiler_data(); |
| 2209 if (profiler_data == NULL) { | 2209 if (profiler_data == NULL) { |
| 2210 stream->PrintError(kFeatureDisabled, NULL); | 2210 stream->PrintError(kFeatureDisabled, NULL); |
| 2211 return; | 2211 return; |
| 2212 } | 2212 } |
| 2213 } | 2213 } |
| 2214 | 2214 |
| 2215 { | 2215 { |
| 2216 StackZone zone(isolate); | 2216 StackZone zone(thread); |
| 2217 HANDLESCOPE(thread); | 2217 HANDLESCOPE(thread); |
| 2218 Profile profile(isolate); | 2218 Profile profile(isolate); |
| 2219 profile.Build(filter, tag_order, extra_tags); | 2219 profile.Build(filter, tag_order, extra_tags); |
| 2220 profile.PrintJSON(stream); | 2220 profile.PrintJSON(stream); |
| 2221 } | 2221 } |
| 2222 | 2222 |
| 2223 // Enable profile interrupts. | 2223 // Enable profile interrupts. |
| 2224 Profiler::BeginExecution(isolate); | 2224 Profiler::BeginExecution(isolate); |
| 2225 } | 2225 } |
| 2226 | 2226 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 ASSERT(sample_buffer != NULL); | 2290 ASSERT(sample_buffer != NULL); |
| 2291 | 2291 |
| 2292 ClearProfileVisitor clear_profile(isolate); | 2292 ClearProfileVisitor clear_profile(isolate); |
| 2293 sample_buffer->VisitSamples(&clear_profile); | 2293 sample_buffer->VisitSamples(&clear_profile); |
| 2294 | 2294 |
| 2295 // Enable profile interrupts. | 2295 // Enable profile interrupts. |
| 2296 Profiler::BeginExecution(isolate); | 2296 Profiler::BeginExecution(isolate); |
| 2297 } | 2297 } |
| 2298 | 2298 |
| 2299 } // namespace dart | 2299 } // namespace dart |
| OLD | NEW |