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 3794008: Update sync profiling changes for Solaris platform. (Closed)
Patch Set: Created 10 years, 2 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
« 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 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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 signal_handler_installed_ = false; 591 signal_handler_installed_ = false;
592 } 592 }
593 593
594 bool signal_handler_installed_; 594 bool signal_handler_installed_;
595 struct sigaction old_signal_handler_; 595 struct sigaction old_signal_handler_;
596 struct itimerval old_timer_value_; 596 struct itimerval old_timer_value_;
597 }; 597 };
598 598
599 599
600 Sampler::Sampler(int interval, bool profiling) 600 Sampler::Sampler(int interval, bool profiling)
601 : interval_(interval), profiling_(profiling), active_(false) { 601 : interval_(interval),
602 profiling_(profiling),
603 synchronous_(profiling),
604 active_(false) {
602 data_ = new PlatformData(); 605 data_ = new PlatformData();
603 } 606 }
604 607
605 608
606 Sampler::~Sampler() { 609 Sampler::~Sampler() {
607 delete data_; 610 delete data_;
608 } 611 }
609 612
610 613
611 void Sampler::Start() { 614 void Sampler::Start() {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 } 647 }
645 648
646 // This sampler is no longer the active sampler. 649 // This sampler is no longer the active sampler.
647 active_sampler_ = NULL; 650 active_sampler_ = NULL;
648 active_ = false; 651 active_ = false;
649 } 652 }
650 653
651 #endif // ENABLE_LOGGING_AND_PROFILING 654 #endif // ENABLE_LOGGING_AND_PROFILING
652 655
653 } } // namespace v8::internal 656 } } // 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