/* * Copyright (c) 2011 Samsung Electronics Co., Ltd 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. */ #ifndef __FACE_DEBUG_H__ #define __FACE_DEBUG_H__ #include #include "statistics.h" #define PERF_TIME #define LVL1 " " #define LVL2 " " #define LVL3 " " #define LVL4 " " #define LVL5 " " #define LVL6 " " #ifdef PERF_TIME // accum item handling #define PERF_CHECK_BEGIN(name) mm_ta_accum_item_begin(name,false,__FILE__,__LINE__) #define PERF_CHECK_END(name) mm_ta_accum_item_end(name,false,__FILE__,__LINE__) // Print out #define PERF_SHOW_RESULT(fp) mm_ta_accum_show_result_fp(fp) #else #define PERF_CHECK_BEGIN(name) #define PERF_CHECK_END(name) // Print out #define PERF_SHOW_RESULT(fp) #endif // PERF_TIME #ifdef LOG_TAG #undef LOG_TAG #endif #define LOG_TAG "TIZEN_N_FACE" #define LOG_INFO(fmt, ...) LOGI("[F:%-16.16s L:%5d] " fmt, __func__, __LINE__ , ##__VA_ARGS__) #define LOG_ERROR(fmt, ...) LOGE("[F:%-16.16s L:%5d] " fmt, __func__, __LINE__ , ##__VA_ARGS__) #define LOG_FATAL(fmt, ...) LOGE("[F:%-16.16s L:%5d] " fmt, __func__, __LINE__ , ##__VA_ARGS__) // #define LOG_DEBUG(fmt, ...) LOGD("[F:%-16.16s L:%5d] " fmt, __func__, __LINE__ , ##__VA_ARGS__) #define LOG_DEBUG(fmt, ...) #endif //__FACE_DEBUG_H__