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

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

Issue 18353002: Fix compiler error about unused profiles_ field in ProfilerEventsProcessor. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/cpu-profiler.h ('k') | no next file » | 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 static const int kTickSamplesBufferChunkSize = 64 * KB; 43 static const int kTickSamplesBufferChunkSize = 64 * KB;
44 static const int kTickSamplesBufferChunksCount = 16; 44 static const int kTickSamplesBufferChunksCount = 16;
45 static const int kProfilerStackSize = 64 * KB; 45 static const int kProfilerStackSize = 64 * KB;
46 46
47 47
48 ProfilerEventsProcessor::ProfilerEventsProcessor( 48 ProfilerEventsProcessor::ProfilerEventsProcessor(
49 ProfileGenerator* generator, CpuProfilesCollection* profiles) 49 ProfileGenerator* generator, CpuProfilesCollection* profiles)
50 : Thread(Thread::Options("v8:ProfEvntProc", kProfilerStackSize)), 50 : Thread(Thread::Options("v8:ProfEvntProc", kProfilerStackSize)),
51 generator_(generator), 51 generator_(generator),
52 profiles_(profiles),
53 running_(true), 52 running_(true),
54 ticks_buffer_(sizeof(TickSampleEventRecord), 53 ticks_buffer_(sizeof(TickSampleEventRecord),
55 kTickSamplesBufferChunkSize, 54 kTickSamplesBufferChunkSize,
56 kTickSamplesBufferChunksCount), 55 kTickSamplesBufferChunksCount),
57 enqueue_order_(0) { 56 enqueue_order_(0) {
58 } 57 }
59 58
60 59
61 void ProfilerEventsProcessor::Enqueue(const CodeEventsContainer& event) { 60 void ProfilerEventsProcessor::Enqueue(const CodeEventsContainer& event) {
62 event.generic.order = ++enqueue_order_; 61 event.generic.order = ++enqueue_order_;
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 processor_->Join(); 500 processor_->Join();
502 delete processor_; 501 delete processor_;
503 delete generator_; 502 delete generator_;
504 processor_ = NULL; 503 processor_ = NULL;
505 generator_ = NULL; 504 generator_ = NULL;
506 logger->logging_nesting_ = saved_logging_nesting_; 505 logger->logging_nesting_ = saved_logging_nesting_;
507 } 506 }
508 507
509 508
510 } } // namespace v8::internal 509 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/cpu-profiler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698