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

Side by Side Diff: src/cpu-profiler.cc

Issue 12825003: Remove bottom-up CPU profile (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Updated CpuProfile class comment Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « src/api.cc ('k') | src/profile-generator.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 21 matching lines...) Expand all
32 #include "frames-inl.h" 32 #include "frames-inl.h"
33 #include "hashmap.h" 33 #include "hashmap.h"
34 #include "log-inl.h" 34 #include "log-inl.h"
35 #include "vm-state-inl.h" 35 #include "vm-state-inl.h"
36 36
37 #include "../include/v8-profiler.h" 37 #include "../include/v8-profiler.h"
38 38
39 namespace v8 { 39 namespace v8 {
40 namespace internal { 40 namespace internal {
41 41
42 static const int kEventsBufferSize = 256 * KB;
43 static const int kTickSamplesBufferChunkSize = 64 * KB; 42 static const int kTickSamplesBufferChunkSize = 64 * KB;
44 static const int kTickSamplesBufferChunksCount = 16; 43 static const int kTickSamplesBufferChunksCount = 16;
45 static const int kProfilerStackSize = 64 * KB; 44 static const int kProfilerStackSize = 64 * KB;
46 45
47 46
48 ProfilerEventsProcessor::ProfilerEventsProcessor(ProfileGenerator* generator) 47 ProfilerEventsProcessor::ProfilerEventsProcessor(ProfileGenerator* generator)
49 : Thread(Thread::Options("v8:ProfEvntProc", kProfilerStackSize)), 48 : Thread(Thread::Options("v8:ProfEvntProc", kProfilerStackSize)),
50 generator_(generator), 49 generator_(generator),
51 running_(true), 50 running_(true),
52 ticks_buffer_(sizeof(TickSampleEventRecord), 51 ticks_buffer_(sizeof(TickSampleEventRecord),
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 572
574 void CpuProfiler::TearDown() { 573 void CpuProfiler::TearDown() {
575 Isolate* isolate = Isolate::Current(); 574 Isolate* isolate = Isolate::Current();
576 if (isolate->cpu_profiler() != NULL) { 575 if (isolate->cpu_profiler() != NULL) {
577 delete isolate->cpu_profiler(); 576 delete isolate->cpu_profiler();
578 } 577 }
579 isolate->set_cpu_profiler(NULL); 578 isolate->set_cpu_profiler(NULL);
580 } 579 }
581 580
582 } } // namespace v8::internal 581 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/profile-generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698