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

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

Issue 88943004: Disable profiler on Windows (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 Isolate** ProfilerManager::isolates_ = NULL; 79 Isolate** ProfilerManager::isolates_ = NULL;
80 intptr_t ProfilerManager::isolates_capacity_ = 0; 80 intptr_t ProfilerManager::isolates_capacity_ = 0;
81 intptr_t ProfilerManager::isolates_size_ = 0; 81 intptr_t ProfilerManager::isolates_size_ = 0;
82 82
83 83
84 void ProfilerManager::InitOnce() { 84 void ProfilerManager::InitOnce() {
85 #if defined(USING_SIMULATOR) 85 #if defined(USING_SIMULATOR)
86 // Force disable of profiling on simulator. 86 // Force disable of profiling on simulator.
87 FLAG_profile = false; 87 FLAG_profile = false;
88 #endif 88 #endif
89 #if defined(TARGET_OS_WINDOWS)
90 // Force disable of profiling on Windows.
91 FLAG_profile = false;
92 #endif
89 if (!FLAG_profile) { 93 if (!FLAG_profile) {
90 return; 94 return;
91 } 95 }
92 NativeSymbolResolver::InitOnce(); 96 NativeSymbolResolver::InitOnce();
93 ASSERT(!initialized_); 97 ASSERT(!initialized_);
94 monitor_ = new Monitor(); 98 monitor_ = new Monitor();
95 start_stop_monitor_ = new Monitor(); 99 start_stop_monitor_ = new Monitor();
96 initialized_ = true; 100 initialized_ = true;
97 ResizeIsolates(16); 101 ResizeIsolates(16);
98 if (FLAG_trace_profiled_isolates) { 102 if (FLAG_trace_profiled_isolates) {
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 return false; 698 return false;
695 } 699 }
696 uintptr_t cursor = reinterpret_cast<uintptr_t>(fp); 700 uintptr_t cursor = reinterpret_cast<uintptr_t>(fp);
697 cursor += sizeof(fp); 701 cursor += sizeof(fp);
698 bool r = cursor >= lower_bound_ && cursor < stack_upper_; 702 bool r = cursor >= lower_bound_ && cursor < stack_upper_;
699 return r; 703 return r;
700 } 704 }
701 705
702 706
703 } // namespace dart 707 } // 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