OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/profiler/native_stack_sampler.h" | 5 #include "base/profiler/native_stack_sampler.h" |
6 | 6 |
7 namespace base { | 7 namespace base { |
8 | 8 |
| 9 NativeStackSampler::StackBuffer::StackBuffer(size_t buffer_size) |
| 10 : buffer_(new int[(buffer_size + sizeof(int) - 1) / sizeof(int)]), |
| 11 size_(buffer_size) {} |
| 12 |
| 13 NativeStackSampler::StackBuffer::~StackBuffer() {} |
| 14 |
9 NativeStackSampler::NativeStackSampler() {} | 15 NativeStackSampler::NativeStackSampler() {} |
10 | 16 |
11 NativeStackSampler::~NativeStackSampler() {} | 17 NativeStackSampler::~NativeStackSampler() {} |
12 | 18 |
13 NativeStackSamplerTestDelegate::~NativeStackSamplerTestDelegate() {} | 19 NativeStackSamplerTestDelegate::~NativeStackSamplerTestDelegate() {} |
14 | 20 |
15 NativeStackSamplerTestDelegate::NativeStackSamplerTestDelegate() {} | 21 NativeStackSamplerTestDelegate::NativeStackSamplerTestDelegate() {} |
16 | 22 |
17 } // namespace base | 23 } // namespace base |
OLD | NEW |