proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
ScopedTraceSection.h
Go to the documentation of this file.
1
/*
2
* Copyright 2017-present Facebook, Inc.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
/*
17
* This macro enables FbSystrace usage in production for fb4a. When
18
* FOLLY_SCOPED_TRACE_SECTION_HEADER is defined then a trace section is started
19
* and later automatically terminated at the close of the scope it is called in.
20
* In all other cases no action is taken.
21
*/
22
23
#pragma once
24
25
#if defined(FOLLY_SCOPED_TRACE_SECTION_HEADER)
26
#include FOLLY_SCOPED_TRACE_SECTION_HEADER
27
#else
28
#define FOLLY_SCOPED_TRACE_SECTION(arg, ...) \
29
do { \
30
} while (0)
31
#endif
proxygen
folly
folly
tracing
ScopedTraceSection.h
Generated by
1.8.11