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

Side by Side Diff: src/log.cc

Issue 8700008: New approach to Crankshaft decision-making (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments Created 9 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
« no previous file with comments | « src/log.h ('k') | src/mark-compact.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 ASSERT(ticker_ != NULL); 1679 ASSERT(ticker_ != NULL);
1680 if (!ticker_->IsActive()) ticker_->Start(); 1680 if (!ticker_->IsActive()) ticker_->Start();
1681 } 1681 }
1682 1682
1683 1683
1684 void Logger::EnsureTickerStopped() { 1684 void Logger::EnsureTickerStopped() {
1685 if (ticker_ != NULL && ticker_->IsActive()) ticker_->Stop(); 1685 if (ticker_ != NULL && ticker_->IsActive()) ticker_->Stop();
1686 } 1686 }
1687 1687
1688 1688
1689 void Logger::ResetTickerInterval() {
1690 if (ticker_ != NULL) ticker_->ResetInterval(kSamplingIntervalMs);
1691 }
1692
1693
1689 FILE* Logger::TearDown() { 1694 FILE* Logger::TearDown() {
1690 if (!is_initialized_) return NULL; 1695 if (!is_initialized_) return NULL;
1691 is_initialized_ = false; 1696 is_initialized_ = false;
1692 1697
1693 // Stop the profiler before closing the file. 1698 // Stop the profiler before closing the file.
1694 if (profiler_ != NULL) { 1699 if (profiler_ != NULL) {
1695 profiler_->Disengage(); 1700 profiler_->Disengage();
1696 delete profiler_; 1701 delete profiler_;
1697 profiler_ = NULL; 1702 profiler_ = NULL;
1698 } 1703 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) { 1774 void SamplerRegistry::RemoveActiveSampler(Sampler* sampler) {
1770 ASSERT(sampler->IsActive()); 1775 ASSERT(sampler->IsActive());
1771 ScopedLock lock(mutex_); 1776 ScopedLock lock(mutex_);
1772 ASSERT(active_samplers_ != NULL); 1777 ASSERT(active_samplers_ != NULL);
1773 bool removed = active_samplers_->RemoveElement(sampler); 1778 bool removed = active_samplers_->RemoveElement(sampler);
1774 ASSERT(removed); 1779 ASSERT(removed);
1775 USE(removed); 1780 USE(removed);
1776 } 1781 }
1777 1782
1778 } } // namespace v8::internal 1783 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/log.h ('k') | src/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698