File: parse_function_partial.stp

package info (click to toggle)
eclipse-linuxtools 8.1.0%2Bdfsg.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 42,888 kB
  • sloc: java: 149,148; xml: 22,186; ansic: 15,426; cpp: 326; makefile: 42; javascript: 29; sh: 19; python: 10
file content (29 lines) | stat: -rw-r--r-- 585 bytes parent folder | download | duplicates (3)
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
global serial
global startTime
global finalTime


function callFunction(probefunc, tid) {
	if (startTime == 0) {
		startTime = gettimeofday_ns()
		printf("<%s,,%d,,%d,,%d\n", probefunc, serial, startTime, tid)
	} else
	    printf("<%s,,%d,,%d,,%d\n", probefunc, serial, gettimeofday_ns(), tid)
	serial++
}

function returnFunction(probefunc, tid) {
	finalTime = gettimeofday_ns()
	printf(">%s,,%d,,%d\n", probefunc, finalTime, tid)
}


probe end {
	printf("-%d\n",finalTime);
	printf("+%d\n",finalTime - startTime);
    exit()
}

probe process(@1).end {
finalTime = gettimeofday_ns()
}