-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchlu_API_trace.cpp
More file actions
63 lines (54 loc) · 1.33 KB
/
chlu_API_trace.cpp
File metadata and controls
63 lines (54 loc) · 1.33 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#ifndef CHLU_API
#define CHLU_API
#include "chlu_API_trace.h"
ml_sample::ml_sample() :
FuncTime(0),
param_count(0),
power(0),
graphic_clock(0),
mem_clock(0),
SM_clock(0),
system_time(0)
{
strcpy(FunctionName,"NULL/0");
}
ml_sample::~ml_sample() {
}
api_param::api_param(): _char(0),
_byte(0),
_short(0),
_int(0),
_ushort(0),
_float(0),
_double(0),
_int_64(0),
_uint64(0)
{
strcpy(_data_type, "NULL");
}
api_param::~api_param(){}
void api_param::init_api_param() {
_char = 0;
_byte = 0;
_short = 0;
_int = 0;
_ushort = 0;
_float = 0;
_double = 0;
_int_64 = 0;
_uint64 = 0;
strcpy(_data_type, "NULL");
}
GLchar api_param::get_char() { return _char; }
GLbyte api_param::get_byte() { return _byte; }
GLshort api_param::get_short() { return _short; }
GLint api_param::get_int() { return _int; }
GLuint api_param::get_uint() { return _uint; }
GLushort api_param::get_ushort() { return _ushort; }
GLfloat api_param::get_float() { return _float; }
GLdouble api_param::get_double() { return _double; }
GLint64 api_param::get_int64() { return _int_64; }
GLuint64 api_param::get_uint64() { return _uint64; }
void api_param::set_type(string type_name) { strcpy(_data_type,type_name.c_str()); }
string api_param::get_type() { string ret_str; ret_str = _data_type; return ret_str; }
#endif