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

Side by Side Diff: src/d8.cc

Issue 2459903003: [Tracing] Use TracingCategoryObserver in gc statistics (Closed)
Patch Set: update 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
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 2834 matching lines...) Expand 10 before | Expand all | Expand 10 after
2845 } 2845 }
2846 create_params.array_buffer_allocator = Shell::array_buffer_allocator; 2846 create_params.array_buffer_allocator = Shell::array_buffer_allocator;
2847 #ifdef ENABLE_VTUNE_JIT_INTERFACE 2847 #ifdef ENABLE_VTUNE_JIT_INTERFACE
2848 create_params.code_event_handler = vTune::GetVtuneCodeEventHandler(); 2848 create_params.code_event_handler = vTune::GetVtuneCodeEventHandler();
2849 #endif 2849 #endif
2850 create_params.constraints.ConfigureDefaults( 2850 create_params.constraints.ConfigureDefaults(
2851 base::SysInfo::AmountOfPhysicalMemory(), 2851 base::SysInfo::AmountOfPhysicalMemory(),
2852 base::SysInfo::AmountOfVirtualMemory()); 2852 base::SysInfo::AmountOfVirtualMemory());
2853 2853
2854 Shell::counter_map_ = new CounterMap(); 2854 Shell::counter_map_ = new CounterMap();
2855 if (i::FLAG_dump_counters || i::FLAG_track_gc_object_stats) { 2855 if (i::FLAG_dump_counters || i::FLAG_gc_stats) {
2856 create_params.counter_lookup_callback = LookupCounter; 2856 create_params.counter_lookup_callback = LookupCounter;
2857 create_params.create_histogram_callback = CreateHistogram; 2857 create_params.create_histogram_callback = CreateHistogram;
2858 create_params.add_histogram_sample_callback = AddHistogramSample; 2858 create_params.add_histogram_sample_callback = AddHistogramSample;
2859 } 2859 }
2860 Isolate* isolate = Isolate::New(create_params); 2860 Isolate* isolate = Isolate::New(create_params);
2861 { 2861 {
2862 Isolate::Scope scope(isolate); 2862 Isolate::Scope scope(isolate);
2863 Initialize(isolate); 2863 Initialize(isolate);
2864 PerIsolateData data(isolate); 2864 PerIsolateData data(isolate);
2865 2865
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
2962 } 2962 }
2963 2963
2964 } // namespace v8 2964 } // namespace v8
2965 2965
2966 2966
2967 #ifndef GOOGLE3 2967 #ifndef GOOGLE3
2968 int main(int argc, char* argv[]) { 2968 int main(int argc, char* argv[]) {
2969 return v8::Shell::Main(argc, argv); 2969 return v8::Shell::Main(argc, argv);
2970 } 2970 }
2971 #endif 2971 #endif
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/flag-definitions.h » ('j') | src/flag-definitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698