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

Unified Diff: base/profiler/native_stack_sampler.h

Issue 1647803004: Move base to DEPS (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/profiler/alternate_timer.cc ('k') | base/profiler/native_stack_sampler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/profiler/native_stack_sampler.h
diff --git a/base/profiler/native_stack_sampler.h b/base/profiler/native_stack_sampler.h
deleted file mode 100644
index bc170dcf933e6e9bc7554fda261182a142178f75..0000000000000000000000000000000000000000
--- a/base/profiler/native_stack_sampler.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef BASE_PROFILER_NATIVE_STACK_SAMPLER_H_
-#define BASE_PROFILER_NATIVE_STACK_SAMPLER_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "base/profiler/stack_sampling_profiler.h"
-#include "base/threading/platform_thread.h"
-
-namespace base {
-
-// NativeStackSampler is an implementation detail of StackSamplingProfiler. It
-// abstracts the native implementation required to record a stack sample for a
-// given thread.
-class NativeStackSampler {
- public:
- virtual ~NativeStackSampler();
-
- // Creates a stack sampler that records samples for |thread_handle|. Returns
- // null if this platform does not support stack sampling.
- static scoped_ptr<NativeStackSampler> Create(PlatformThreadId thread_id);
-
- // The following functions are all called on the SamplingThread (not the
- // thread being sampled).
-
- // Notifies the sampler that we're starting to record a new profile. Modules
- // shared across samples in the profile should be recorded in |modules|.
- virtual void ProfileRecordingStarting(
- std::vector<StackSamplingProfiler::Module>* modules) = 0;
-
- // Records a stack sample to |sample|.
- virtual void RecordStackSample(StackSamplingProfiler::Sample* sample) = 0;
-
- // Notifies the sampler that we've stopped recording the current
- // profile.
- virtual void ProfileRecordingStopped() = 0;
-
- protected:
- NativeStackSampler();
-
- private:
- DISALLOW_COPY_AND_ASSIGN(NativeStackSampler);
-};
-
-} // namespace base
-
-#endif // BASE_PROFILER_NATIVE_STACK_SAMPLER_H_
-
« no previous file with comments | « base/profiler/alternate_timer.cc ('k') | base/profiler/native_stack_sampler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698