| 1 | // Copyright 2019 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | // Placeholder functions for the StackSampler on iOS, which is not currently |
| 6 | // supported. |
| 7 | |
| 8 | #include "base/profiler/stack_sampler.h" |
| 9 | |
| 10 | namespace base { |
| 11 | |
| 12 | // static |
| 13 | std::unique_ptr<StackSampler> StackSampler::Create( |
| 14 | SamplingProfilerThreadToken thread_token, |
| 15 | ModuleCache* module_cache, |
| 16 | StackSamplerTestDelegate* test_delegate, |
| 17 | std::unique_ptr<Unwinder> native_unwinder) { |
| 18 | return nullptr; |
| 19 | } |
| 20 | |
| 21 | // static |
| 22 | size_t StackSampler::GetStackBufferSize() { |
| 23 | return 0; |
| 24 | } |
| 25 | |
| 26 | } // namespace base |
| 27 | |