| Index: src/sampler.cc
|
| diff --git a/src/sampler.cc b/src/sampler.cc
|
| index f3a0397dc03008df64572526dc4eafb0d57993b6..413b6be9060daa43c41bb6e41414ef419d1a299b 100644
|
| --- a/src/sampler.cc
|
| +++ b/src/sampler.cc
|
| @@ -504,9 +504,9 @@ class SamplerThread : public base::Thread {
|
| need_to_start = true;
|
| }
|
|
|
| - ASSERT(sampler->IsActive());
|
| - ASSERT(!instance_->active_samplers_.Contains(sampler));
|
| - ASSERT(instance_->interval_ == sampler->interval());
|
| + DCHECK(sampler->IsActive());
|
| + DCHECK(!instance_->active_samplers_.Contains(sampler));
|
| + DCHECK(instance_->interval_ == sampler->interval());
|
| instance_->active_samplers_.Add(sampler);
|
|
|
| if (need_to_start) instance_->StartSynchronously();
|
| @@ -517,9 +517,9 @@ class SamplerThread : public base::Thread {
|
| {
|
| base::LockGuard<base::Mutex> lock_guard(mutex_);
|
|
|
| - ASSERT(sampler->IsActive());
|
| + DCHECK(sampler->IsActive());
|
| bool removed = instance_->active_samplers_.RemoveElement(sampler);
|
| - ASSERT(removed);
|
| + DCHECK(removed);
|
| USE(removed);
|
|
|
| // We cannot delete the instance immediately as we need to Join() the
|
| @@ -575,7 +575,7 @@ SamplerThread* SamplerThread::instance_ = NULL;
|
| //
|
| DISABLE_ASAN void TickSample::Init(Isolate* isolate,
|
| const RegisterState& regs) {
|
| - ASSERT(isolate->IsInitialized());
|
| + DCHECK(isolate->IsInitialized());
|
| timestamp = base::TimeTicks::HighResolutionNow();
|
| pc = regs.pc;
|
| state = isolate->current_vm_state();
|
| @@ -644,20 +644,20 @@ Sampler::Sampler(Isolate* isolate, int interval)
|
|
|
|
|
| Sampler::~Sampler() {
|
| - ASSERT(!IsActive());
|
| + DCHECK(!IsActive());
|
| delete data_;
|
| }
|
|
|
|
|
| void Sampler::Start() {
|
| - ASSERT(!IsActive());
|
| + DCHECK(!IsActive());
|
| SetActive(true);
|
| SamplerThread::AddActiveSampler(this);
|
| }
|
|
|
|
|
| void Sampler::Stop() {
|
| - ASSERT(IsActive());
|
| + DCHECK(IsActive());
|
| SamplerThread::RemoveActiveSampler(this);
|
| SetActive(false);
|
| }
|
|
|