blob: a0112d0ab2ec71107d25037df2e60ec21a7f3862 [file] [log] [blame]
Chris Craikfd862e92012-04-17 10:45:52 -07001/*
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
33namespace android {
34
35class ScopedTrace {
36
37public:
38 inline ScopedTrace(uint64_t tag, const char* name) {}
39};
40
41}; // namespace android
42
43#endif // ANDROID_TRACE_H