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

Side by Side Diff: src/platform-solaris.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-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 bool signal_handler_installed_; 598 bool signal_handler_installed_;
599 struct sigaction old_signal_handler_; 599 struct sigaction old_signal_handler_;
600 struct itimerval old_timer_value_; 600 struct itimerval old_timer_value_;
601 }; 601 };
602 602
603 603
604 Sampler::Sampler(int interval, bool profiling) 604 Sampler::Sampler(int interval, bool profiling)
605 : interval_(interval), 605 : interval_(interval),
606 profiling_(profiling), 606 profiling_(profiling),
607 synchronous_(profiling), 607 synchronous_(profiling),
608 active_(false) { 608 active_(false),
609 samples_taken_(0) {
609 data_ = new PlatformData(); 610 data_ = new PlatformData();
610 } 611 }
611 612
612 613
613 Sampler::~Sampler() { 614 Sampler::~Sampler() {
614 delete data_; 615 delete data_;
615 } 616 }
616 617
617 618
618 void Sampler::Start() { 619 void Sampler::Start() {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 } 652 }
652 653
653 // This sampler is no longer the active sampler. 654 // This sampler is no longer the active sampler.
654 active_sampler_ = NULL; 655 active_sampler_ = NULL;
655 active_ = false; 656 active_ = false;
656 } 657 }
657 658
658 #endif // ENABLE_LOGGING_AND_PROFILING 659 #endif // ENABLE_LOGGING_AND_PROFILING
659 660
660 } } // namespace v8::internal 661 } } // namespace v8::internal
OLDNEW
« src/platform.h ('K') | « src/platform-openbsd.cc ('k') | src/platform-win32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698