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

Issue 1519027: Make VM state tracking to be independent of logging and profiling. (Closed)
Patch Set: Created 10 years, 8 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 | « src/platform-openbsd.cc ('k') | src/platform-win32.cc » ('j') | 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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 USE(info); 526 USE(info);
527 if (signal != SIGPROF) return; 527 if (signal != SIGPROF) return;
528 if (active_sampler_ == NULL) return; 528 if (active_sampler_ == NULL) return;
529 529
530 TickSample sample; 530 TickSample sample;
531 sample.pc = 0; 531 sample.pc = 0;
532 sample.sp = 0; 532 sample.sp = 0;
533 sample.fp = 0; 533 sample.fp = 0;
534 534
535 // We always sample the VM state. 535 // We always sample the VM state.
536 sample.state = Logger::state(); 536 sample.state = VMState::current_state();
537 537
538 active_sampler_->Tick(&sample); 538 active_sampler_->Tick(&sample);
539 } 539 }
540 540
541 541
542 class Sampler::PlatformData : public Malloced { 542 class Sampler::PlatformData : public Malloced {
543 public: 543 public:
544 PlatformData() { 544 PlatformData() {
545 signal_handler_installed_ = false; 545 signal_handler_installed_ = false;
546 } 546 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 } 598 }
599 599
600 // This sampler is no longer the active sampler. 600 // This sampler is no longer the active sampler.
601 active_sampler_ = NULL; 601 active_sampler_ = NULL;
602 active_ = false; 602 active_ = false;
603 } 603 }
604 604
605 #endif // ENABLE_LOGGING_AND_PROFILING 605 #endif // ENABLE_LOGGING_AND_PROFILING
606 606
607 } } // namespace v8::internal 607 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/platform-openbsd.cc ('k') | src/platform-win32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698