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

Side by Side Diff: src/d8.cc

Issue 2477143002: Revert of [Tracing] Use TracingCategoryObserver in gc statistics (Closed)
Patch Set: Created 4 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
« no previous file with comments | « src/bootstrapper.cc ('k') | src/flag-definitions.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 <errno.h> 5 #include <errno.h>
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <string.h> 7 #include <string.h>
8 #include <sys/stat.h> 8 #include <sys/stat.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 2846 matching lines...) Expand 10 before | Expand all | Expand 10 after
2857 } 2857 }
2858 create_params.array_buffer_allocator = Shell::array_buffer_allocator; 2858 create_params.array_buffer_allocator = Shell::array_buffer_allocator;
2859 #ifdef ENABLE_VTUNE_JIT_INTERFACE 2859 #ifdef ENABLE_VTUNE_JIT_INTERFACE
2860 create_params.code_event_handler = vTune::GetVtuneCodeEventHandler(); 2860 create_params.code_event_handler = vTune::GetVtuneCodeEventHandler();
2861 #endif 2861 #endif
2862 create_params.constraints.ConfigureDefaults( 2862 create_params.constraints.ConfigureDefaults(
2863 base::SysInfo::AmountOfPhysicalMemory(), 2863 base::SysInfo::AmountOfPhysicalMemory(),
2864 base::SysInfo::AmountOfVirtualMemory()); 2864 base::SysInfo::AmountOfVirtualMemory());
2865 2865
2866 Shell::counter_map_ = new CounterMap(); 2866 Shell::counter_map_ = new CounterMap();
2867 if (i::FLAG_dump_counters || i::FLAG_gc_stats) { 2867 if (i::FLAG_dump_counters || i::FLAG_track_gc_object_stats) {
2868 create_params.counter_lookup_callback = LookupCounter; 2868 create_params.counter_lookup_callback = LookupCounter;
2869 create_params.create_histogram_callback = CreateHistogram; 2869 create_params.create_histogram_callback = CreateHistogram;
2870 create_params.add_histogram_sample_callback = AddHistogramSample; 2870 create_params.add_histogram_sample_callback = AddHistogramSample;
2871 } 2871 }
2872 2872
2873 Isolate* isolate = Isolate::New(create_params); 2873 Isolate* isolate = Isolate::New(create_params);
2874 { 2874 {
2875 Isolate::Scope scope(isolate); 2875 Isolate::Scope scope(isolate);
2876 Initialize(isolate); 2876 Initialize(isolate);
2877 PerIsolateData data(isolate); 2877 PerIsolateData data(isolate);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
2956 } 2956 }
2957 2957
2958 } // namespace v8 2958 } // namespace v8
2959 2959
2960 2960
2961 #ifndef GOOGLE3 2961 #ifndef GOOGLE3
2962 int main(int argc, char* argv[]) { 2962 int main(int argc, char* argv[]) {
2963 return v8::Shell::Main(argc, argv); 2963 return v8::Shell::Main(argc, argv);
2964 } 2964 }
2965 #endif 2965 #endif
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698