Copyright 2016 Google Inc.
All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.This file originates from /platform/frameworks/native/include/utils/Trace.h
The ION_ATRACE_TAG macro can be defined before including this header to trace using one of the tags defined below. It must be defined to one of the following ION_ATRACE_TAG_* macros. The trace tag is used to filter tracing in userland to avoid some of the runtime cost of tracing when it is not desired.
Defining ION_ATRACE_TAG to be ION_ATRACE_TAG_ALWAYS will result in the tracing always being enabled - this should ONLY be done for debug code, as userland tracing has a performance cost even when the trace is not being recorded. Defining ION_ATRACE_TAG to be ION_ATRACE_TAG_NEVER or leaving ION_ATRACE_TAG undefined will result in the tracing always being disabled.
These tags must be kept in sync with frameworks/base/core/java/android/os/Trace.java.
Definition at line 48 of file trace.h.