Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
f3b388a8
Commit
f3b388a8
authored
Sep 18, 2017
by
Zhangyi Chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove butil/allocator/
parent
6486d8f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
70 deletions
+0
-70
Makefile
Makefile
+0
-1
type_profiler_control.cc
src/butil/allocator/type_profiler_control.cc
+0
-38
type_profiler_control.h
src/butil/allocator/type_profiler_control.h
+0
-31
No files found.
Makefile
View file @
f3b388a8
...
...
@@ -38,7 +38,6 @@ BUTIL_SOURCES = \
src/butil/third_party/snappy/snappy-stubs-internal.cc
\
src/butil/third_party/snappy/snappy.cc
\
src/butil/third_party/murmurhash3/murmurhash3.cpp
\
src/butil/allocator/type_profiler_control.cc
\
src/butil/arena.cpp
\
src/butil/at_exit.cc
\
src/butil/atomicops_internals_x86_gcc.cc
\
...
...
src/butil/allocator/type_profiler_control.cc
deleted
100644 → 0
View file @
6486d8f0
// Copyright 2012 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.
#include "butil/allocator/type_profiler_control.h"
namespace
butil
{
namespace
type_profiler
{
namespace
{
#if defined(TYPE_PROFILING)
const
bool
kTypeProfilingEnabled
=
true
;
#else
const
bool
kTypeProfilingEnabled
=
false
;
#endif
bool
g_enable_intercept
=
kTypeProfilingEnabled
;
}
// namespace
// static
void
Controller
::
Stop
()
{
g_enable_intercept
=
false
;
}
// static
bool
Controller
::
IsProfiling
()
{
return
kTypeProfilingEnabled
&&
g_enable_intercept
;
}
// static
void
Controller
::
Restart
()
{
g_enable_intercept
=
kTypeProfilingEnabled
;
}
}
// namespace type_profiler
}
// namespace butil
src/butil/allocator/type_profiler_control.h
deleted
100644 → 0
View file @
6486d8f0
// Copyright 2012 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_ALLOCATOR_TYPE_PROFILER_CONTROL_H_
#define BASE_ALLOCATOR_TYPE_PROFILER_CONTROL_H_
#include "butil/gtest_prod_util.h"
namespace
butil
{
namespace
type_profiler
{
class
Controller
{
public
:
static
void
Stop
();
static
bool
IsProfiling
();
private
:
FRIEND_TEST_ALL_PREFIXES
(
TypeProfilerTest
,
TestProfileNewWithoutProfiledDelete
);
// It must be used only from allowed unit tests. The following is only
// allowed for use in unit tests. Profiling should never be restarted in
// regular use.
static
void
Restart
();
};
}
// namespace type_profiler
}
// namespace butil
#endif // BASE_ALLOCATOR_TYPE_PROFILER_CONTROL_H_
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment