-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtracerlib.c
59 lines (47 loc) · 852 Bytes
/
tracerlib.c
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
#include "stddef.h"
#include <stdio.h>
#include <sys/types.h>
#include <time.h>
static clock_t starttime;
void _tracer_traceon()
{
}
void ftracer_traceon_()
{
printf("trace on\n");
fflush(NULL);
starttime = clock();
_tracer_traceon();
}
void _tracer_traceoff()
{
}
void ftracer_traceoff_()
{
clock_t endtime;
endtime = clock();
printf("trace off\n");
printf("time = %f\n", (double)(endtime - starttime) / CLOCKS_PER_SEC );
fflush(NULL);
_tracer_traceoff();
}
void _tracer_loopstart(int id)
{
}
void _tracer_loopend(int id)
{
}
void _tracer_array_memory(void *start, size_t length)
{
}
void ftracer_array_memory_(void **start, int *length)
{
_tracer_array_memory(*start, *length);
}
void _tracer_array_memory_clear(void *start)
{
}
void ftracer_array_memory_clear_(void *start)
{
_tracer_array_memory_clear(start);
}