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/platform-freebsd.cc

Issue 5325003: Simplify ProfLazyMode test on Linux. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments addressed Created 10 years 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
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 bool signal_handler_installed_; 613 bool signal_handler_installed_;
614 struct sigaction old_signal_handler_; 614 struct sigaction old_signal_handler_;
615 struct itimerval old_timer_value_; 615 struct itimerval old_timer_value_;
616 }; 616 };
617 617
618 618
619 Sampler::Sampler(int interval, bool profiling) 619 Sampler::Sampler(int interval, bool profiling)
620 : interval_(interval), 620 : interval_(interval),
621 profiling_(profiling), 621 profiling_(profiling),
622 synchronous_(profiling), 622 synchronous_(profiling),
623 active_(false) { 623 active_(false),
624 samples_taken_(0) {
624 data_ = new PlatformData(); 625 data_ = new PlatformData();
625 } 626 }
626 627
627 628
628 Sampler::~Sampler() { 629 Sampler::~Sampler() {
629 delete data_; 630 delete data_;
630 } 631 }
631 632
632 633
633 void Sampler::Start() { 634 void Sampler::Start() {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 } 667 }
667 668
668 // This sampler is no longer the active sampler. 669 // This sampler is no longer the active sampler.
669 active_sampler_ = NULL; 670 active_sampler_ = NULL;
670 active_ = false; 671 active_ = false;
671 } 672 }
672 673
673 #endif // ENABLE_LOGGING_AND_PROFILING 674 #endif // ENABLE_LOGGING_AND_PROFILING
674 675
675 } } // namespace v8::internal 676 } } // namespace v8::internal
OLDNEW
« src/platform.h ('K') | « src/platform.h ('k') | src/platform-linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698