Skip to content

Commit fd862e9

Browse files
ChrisCraikJean-Baptiste Queru
authored andcommitted
Add header for forward compatibility
Change-Id: I6e3da852d50fc14cfb6fb50f7dd867f37daea19d
1 parent 3d7f0cb commit fd862e9

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

include/utils/Trace.h

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (C) 2012 The Android Open Source Project
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+
#ifndef ANDROID_TRACE_H
18+
#define ANDROID_TRACE_H
19+
20+
#define ATRACE_TAG_NEVER 0 // The "never" tag is never enabled.
21+
#define ATRACE_TAG_ALWAYS (1<<0) // The "always" tag is always enabled.
22+
#define ATRACE_TAG_GRAPHICS (1<<1)
23+
#define ATRACE_TAG_INPUT (1<<2)
24+
#define ATRACE_TAG_VIEW (1<<3)
25+
#define ATRACE_TAG_WEBVIEW (1<<4)
26+
27+
#define ATRACE_CALL()
28+
29+
#define ATRACE_INT(name, value)
30+
31+
#define ATRACE_ENABLED() false
32+
33+
namespace android {
34+
35+
class ScopedTrace {
36+
37+
public:
38+
inline ScopedTrace(uint64_t tag, const char* name) {}
39+
};
40+
41+
}; // namespace android
42+
43+
#endif // ANDROID_TRACE_H

0 commit comments

Comments
 (0)