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

Side by Side Diff: src/isolate.cc

Issue 1615943002: Runtime call counters and timers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 4 years, 11 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
« no previous file with comments | « src/flag-definitions.h ('k') | src/runtime/runtime.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project 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 "src/isolate.h" 5 #include "src/isolate.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include <fstream> // NOLINT(readability/streams) 9 #include <fstream> // NOLINT(readability/streams)
10 #include <sstream> 10 #include <sstream>
(...skipping 2378 matching lines...) Expand 10 before | Expand all | Expand 10 after
2389 void Isolate::DumpAndResetCompilationStats() { 2389 void Isolate::DumpAndResetCompilationStats() {
2390 if (turbo_statistics() != nullptr) { 2390 if (turbo_statistics() != nullptr) {
2391 OFStream os(stdout); 2391 OFStream os(stdout);
2392 os << *turbo_statistics() << std::endl; 2392 os << *turbo_statistics() << std::endl;
2393 } 2393 }
2394 if (hstatistics() != nullptr) hstatistics()->Print(); 2394 if (hstatistics() != nullptr) hstatistics()->Print();
2395 delete turbo_statistics_; 2395 delete turbo_statistics_;
2396 turbo_statistics_ = nullptr; 2396 turbo_statistics_ = nullptr;
2397 delete hstatistics_; 2397 delete hstatistics_;
2398 hstatistics_ = nullptr; 2398 hstatistics_ = nullptr;
2399 if (FLAG_runtime_call_stats) {
2400 OFStream os(stdout);
2401 runtime_state()->runtime_call_stats()->Print(os);
2402 runtime_state()->runtime_call_stats()->Reset();
2403 }
2399 } 2404 }
2400 2405
2401 2406
2402 HStatistics* Isolate::GetHStatistics() { 2407 HStatistics* Isolate::GetHStatistics() {
2403 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); 2408 if (hstatistics() == NULL) set_hstatistics(new HStatistics());
2404 return hstatistics(); 2409 return hstatistics();
2405 } 2410 }
2406 2411
2407 2412
2408 CompilationStatistics* Isolate::GetTurboStatistics() { 2413 CompilationStatistics* Isolate::GetTurboStatistics() {
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
2849 // Then check whether this scope intercepts. 2854 // Then check whether this scope intercepts.
2850 if ((flag & intercept_mask_)) { 2855 if ((flag & intercept_mask_)) {
2851 intercepted_flags_ |= flag; 2856 intercepted_flags_ |= flag;
2852 return true; 2857 return true;
2853 } 2858 }
2854 return false; 2859 return false;
2855 } 2860 }
2856 2861
2857 } // namespace internal 2862 } // namespace internal
2858 } // namespace v8 2863 } // namespace v8
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698