ATS_debug.h
1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
Copyright Wang yong ALL RIGHT RESERVED !
@ file name: ATS_debug.h
@ description: 调试相关的接口文件
@ Author: wangyong, doforfaith@gmail.com
@ Modify History:
Date Event Person
10-05-31 Creator wangyong
*/
#if defined(__SKY_3DGUI__)
#ifndef __ATS_DEBUG_H__
#define __ATS_DEBUG_H__
#include "ATS_basic.h"
#include "ATS_adaptation_features.h"
/*@ 断言接口
调用时请注意传入参数的类型一致性*/
extern void ATS_debug_assert(ats_int32 expr);
/*@ Trace 打印接口,直接输出到Trace 工具上
调用时请注意传入参数的类型一致性*/
extern void ATS_debug_trace(ats_uint8 *fmt, ...);
/*@ Trace 打印接口,输出到文件中,具体文件参考接口的实现
调用时请注意传入参数的类型一致性*/
extern void ATS_debug_trace_file(ats_uint8 *fmt, ...);
/*@ 函数运行时间统计接口
调用时请注意传入参数的类型一致性*/
extern void ATS_debug_begin_timing(void);
/*@ 统计结束,返回统计时间,可选是否打印出结果
@ str,需要打印出来的字符串
@ need_trace,是否需要打印结果,打印结果将会把str 字串打印出来
*/
extern ats_int32 ATS_debug_end_timing( ats_uint8 * str, ATS_BOOL need_trace);
#endif /*__ATS_DEBUG_H__*/
#endif /*__SKY_3DGUI__*/