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

Side by Side Diff: src/sampler.cc

Issue 23271003: Support higher CPU profiler sampling rate on Windows (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 7 years, 3 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 | « no previous file | 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 Tick(sample); 602 Tick(sample);
603 if (sample != &sample_obj) { 603 if (sample != &sample_obj) {
604 isolate_->cpu_profiler()->FinishTickSample(); 604 isolate_->cpu_profiler()->FinishTickSample();
605 } 605 }
606 } 606 }
607 607
608 608
609 bool Sampler::CanSampleOnProfilerEventsProcessorThread() { 609 bool Sampler::CanSampleOnProfilerEventsProcessorThread() {
610 #if defined(USE_SIGNALS) 610 #if defined(USE_SIGNALS)
611 return true; 611 return true;
612 #elif V8_OS_WIN || V8_OS_CYGWIN
613 return true;
612 #else 614 #else
613 return false; 615 return false;
614 #endif 616 #endif
615 } 617 }
616 618
617 619
618 #if defined(USE_SIGNALS) 620 #if defined(USE_SIGNALS)
619 621
620 void Sampler::DoSample() { 622 void Sampler::DoSample() {
621 if (!SignalHandler::Installed()) return; 623 if (!SignalHandler::Installed()) return;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 #endif // USE_SIMULATOR 659 #endif // USE_SIMULATOR
658 SampleStack(state); 660 SampleStack(state);
659 } 661 }
660 ResumeThread(profiled_thread); 662 ResumeThread(profiled_thread);
661 } 663 }
662 664
663 #endif // USE_SIGNALS 665 #endif // USE_SIGNALS
664 666
665 667
666 } } // namespace v8::internal 668 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698