2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
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
8 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 #ifndef __FACE_DEBUG_H__
17 #define __FACE_DEBUG_H__
20 #include "statistics.h"
33 // accum item handling
34 #define PERF_CHECK_BEGIN(name) mm_ta_accum_item_begin(name,false,__FILE__,__LINE__)
35 #define PERF_CHECK_END(name) mm_ta_accum_item_end(name,false,__FILE__,__LINE__)
38 #define PERF_SHOW_RESULT(fp) mm_ta_accum_show_result_fp(fp)
42 #define PERF_CHECK_BEGIN(name)
43 #define PERF_CHECK_END(name)
46 #define PERF_SHOW_RESULT(fp)
54 #define LOG_TAG "TIZEN_N_FACE"
56 #define LOG_INFO(fmt, ...) LOGI("[F:%-16.16s L:%5d] " fmt, __func__, __LINE__ , ##__VA_ARGS__)
57 #define LOG_ERROR(fmt, ...) LOGE("[F:%-16.16s L:%5d] " fmt, __func__, __LINE__ , ##__VA_ARGS__)
58 #define LOG_FATAL(fmt, ...) LOGE("[F:%-16.16s L:%5d] " fmt, __func__, __LINE__ , ##__VA_ARGS__)
60 // #define LOG_DEBUG(fmt, ...) LOGD("[F:%-16.16s L:%5d] " fmt, __func__, __LINE__ , ##__VA_ARGS__)
62 #define LOG_DEBUG(fmt, ...)
65 #endif //__FACE_DEBUG_H__