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

Side by Side Diff: src/isolate.cc

Issue 1678973002: [counters] moving runtime counters to counter.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/counters.cc ('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 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after
2395 OFStream os(stdout); 2395 OFStream os(stdout);
2396 os << *turbo_statistics() << std::endl; 2396 os << *turbo_statistics() << std::endl;
2397 } 2397 }
2398 if (hstatistics() != nullptr) hstatistics()->Print(); 2398 if (hstatistics() != nullptr) hstatistics()->Print();
2399 delete turbo_statistics_; 2399 delete turbo_statistics_;
2400 turbo_statistics_ = nullptr; 2400 turbo_statistics_ = nullptr;
2401 delete hstatistics_; 2401 delete hstatistics_;
2402 hstatistics_ = nullptr; 2402 hstatistics_ = nullptr;
2403 if (FLAG_runtime_call_stats) { 2403 if (FLAG_runtime_call_stats) {
2404 OFStream os(stdout); 2404 OFStream os(stdout);
2405 runtime_state()->runtime_call_stats()->Print(os); 2405 counters()->runtime_call_stats()->Print(os);
2406 runtime_state()->runtime_call_stats()->Reset(); 2406 counters()->runtime_call_stats()->Reset();
2407 } 2407 }
2408 } 2408 }
2409 2409
2410 2410
2411 HStatistics* Isolate::GetHStatistics() { 2411 HStatistics* Isolate::GetHStatistics() {
2412 if (hstatistics() == NULL) set_hstatistics(new HStatistics()); 2412 if (hstatistics() == NULL) set_hstatistics(new HStatistics());
2413 return hstatistics(); 2413 return hstatistics();
2414 } 2414 }
2415 2415
2416 2416
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
2858 // Then check whether this scope intercepts. 2858 // Then check whether this scope intercepts.
2859 if ((flag & intercept_mask_)) { 2859 if ((flag & intercept_mask_)) {
2860 intercepted_flags_ |= flag; 2860 intercepted_flags_ |= flag;
2861 return true; 2861 return true;
2862 } 2862 }
2863 return false; 2863 return false;
2864 } 2864 }
2865 2865
2866 } // namespace internal 2866 } // namespace internal
2867 } // namespace v8 2867 } // namespace v8
OLDNEW
« no previous file with comments | « src/counters.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698