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

Side by Side Diff: base/profiler/native_stack_sampler.cc

Issue 2601633002: Use a common buffer across all instances for stack-copy. (Closed)
Patch Set: use common StackBuffer; update Mac native sampler Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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 unsigned char[buffer_size]), size_(buffer_size) {}
Mike Wittman 2017/05/10 01:29:56 We should fix this for alignment while we're here,
bcwhite 2017/05/10 13:50:37 Done.
11
12 NativeStackSampler::StackBuffer::~StackBuffer() {}
13
9 NativeStackSampler::NativeStackSampler() {} 14 NativeStackSampler::NativeStackSampler() {}
10 15
11 NativeStackSampler::~NativeStackSampler() {} 16 NativeStackSampler::~NativeStackSampler() {}
12 17
13 NativeStackSamplerTestDelegate::~NativeStackSamplerTestDelegate() {} 18 NativeStackSamplerTestDelegate::~NativeStackSamplerTestDelegate() {}
14 19
15 NativeStackSamplerTestDelegate::NativeStackSamplerTestDelegate() {} 20 NativeStackSamplerTestDelegate::NativeStackSamplerTestDelegate() {}
16 21
17 } // namespace base 22 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698