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

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

Issue 79783002: Disable profiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « no previous file | no next file » | 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 <cstdio> 5 #include <cstdio>
6 6
7 #include "platform/utils.h" 7 #include "platform/utils.h"
8 8
9 #include "vm/isolate.h" 9 #include "vm/isolate.h"
10 #include "vm/json_stream.h" 10 #include "vm/json_stream.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Notes on stack frame walking: 62 // Notes on stack frame walking:
63 // 63 //
64 // The sampling profiler will collect up to Sample::kNumStackFrames stack frames 64 // The sampling profiler will collect up to Sample::kNumStackFrames stack frames
65 // The stack frame walking code uses the frame pointer to traverse the stack. 65 // The stack frame walking code uses the frame pointer to traverse the stack.
66 // If the VM is compiled without frame pointers (which is the default on 66 // If the VM is compiled without frame pointers (which is the default on
67 // recent GCC versions with optimizing enabled) the stack walking code will 67 // recent GCC versions with optimizing enabled) the stack walking code will
68 // fail (sometimes leading to a crash). 68 // fail (sometimes leading to a crash).
69 // 69 //
70 70
71 71
72 DEFINE_FLAG(bool, profile, true, "Enable Sampling Profiler"); 72 DEFINE_FLAG(bool, profile, false, "Enable Sampling Profiler");
73 73
74 bool ProfilerManager::initialized_ = false; 74 bool ProfilerManager::initialized_ = false;
75 bool ProfilerManager::shutdown_ = false; 75 bool ProfilerManager::shutdown_ = false;
76 Monitor* ProfilerManager::monitor_ = NULL; 76 Monitor* ProfilerManager::monitor_ = NULL;
77 Isolate** ProfilerManager::isolates_ = NULL; 77 Isolate** ProfilerManager::isolates_ = NULL;
78 intptr_t ProfilerManager::isolates_capacity_ = 0; 78 intptr_t ProfilerManager::isolates_capacity_ = 0;
79 intptr_t ProfilerManager::isolates_size_ = 0; 79 intptr_t ProfilerManager::isolates_size_ = 0;
80 80
81 81
82 void ProfilerManager::InitOnce() { 82 void ProfilerManager::InitOnce() {
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 return false; 573 return false;
574 } 574 }
575 uintptr_t cursor = reinterpret_cast<uintptr_t>(fp); 575 uintptr_t cursor = reinterpret_cast<uintptr_t>(fp);
576 cursor += sizeof(fp); 576 cursor += sizeof(fp);
577 bool r = cursor >= stack_lower_ && cursor <= stack_upper_; 577 bool r = cursor >= stack_lower_ && cursor <= stack_upper_;
578 return r; 578 return r;
579 } 579 }
580 580
581 581
582 } // namespace dart 582 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698