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

Side by Side Diff: runtime/vm/profiler.cc

Issue 393103002: Revert r38240 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 months 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/simulator_arm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "platform/utils.h" 5 #include "platform/utils.h"
6 6
7 #include "vm/allocation.h" 7 #include "vm/allocation.h"
8 #include "vm/atomic.h" 8 #include "vm/atomic.h"
9 #include "vm/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 1872 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 stack_lower = 0; 1883 stack_lower = 0;
1884 stack_upper = 0; 1884 stack_upper = 0;
1885 } 1885 }
1886 if (FLAG_profile_vm) { 1886 if (FLAG_profile_vm) {
1887 // Collect native and Dart frames. 1887 // Collect native and Dart frames.
1888 ProfilerNativeStackWalker stackWalker(sample, stack_lower, stack_upper, 1888 ProfilerNativeStackWalker stackWalker(sample, stack_lower, stack_upper,
1889 state.pc, state.fp, state.sp); 1889 state.pc, state.fp, state.sp);
1890 stackWalker.walk(isolate->heap()); 1890 stackWalker.walk(isolate->heap());
1891 } else { 1891 } else {
1892 if ((isolate->stub_code() != NULL) && 1892 if ((isolate->stub_code() != NULL) &&
1893 (isolate->top_exit_frame_info() != 0) && 1893 (isolate->top_exit_frame_info() != 0)) {
1894 (isolate->vm_tag() != VMTag::kScriptTagId)) { 1894 // Collect only Dart frames.
1895 // We have a valid exit frame info, use the Dart stack walker.
1896 ProfilerDartStackWalker stackWalker(isolate, sample); 1895 ProfilerDartStackWalker stackWalker(isolate, sample);
1897 stackWalker.walk(); 1896 stackWalker.walk();
1898 } else { 1897 } else {
1899 // Collect native and Dart frames. 1898 // Collect native and Dart frames.
1900 ProfilerNativeStackWalker stackWalker(sample, stack_lower, stack_upper, 1899 ProfilerNativeStackWalker stackWalker(sample, stack_lower, stack_upper,
1901 state.pc, state.fp, state.sp); 1900 state.pc, state.fp, state.sp);
1902 stackWalker.walk(isolate->heap()); 1901 stackWalker.walk(isolate->heap());
1903 } 1902 }
1904 } 1903 }
1905 } 1904 }
1906 1905
1907 } // namespace dart 1906 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/simulator_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698