blob: f3bb1995eea06389be10c1c481ba1964d4ba09c5 [file] [log] [blame]
#///////////////////////////////////////////////////////////////////////////////
#// Copyright (c) 2000-2017 Ericsson Telecom AB //
#// //
#// All rights reserved. This program and the accompanying materials //
#// are made available under the terms of the Eclipse Public License v1.0 //
#// which accompanies this distribution, and is available at //
#// http://www.eclipse.org/legal/epl-v10.html //
#///////////////////////////////////////////////////////////////////////////////
# this file is used by the nedit macro: ShowProfiler.pats
# needed to generate the file with profiler info at the beginning of the lines (in microSeconds)
# nedit highlights the lines according to this number
BEGIN {
FS=":[ \t]*|[ \t]+"
readInfo=0
}
/Call times per lines/ {
readInfo=1
}
/Average time\/calls per lines/ {
readInfo=0
}
#33.33: EPTF_CLL_LoadRegulator_Functions.ttcn:102 f_EPTF_LoadRegulator_init_CT
#$1 $2 $3 $4
# $4 can be empty
/^[[:digit:]]+[.]*[[:digit:]]*:/ {
if (readInfo==1) {
executed[$2":"$3]=$1
knownFiles[$2]=1
}
}
// {
lineCount[FILENAME]++
if (knownFiles[FILENAME]==1) {
printf("%12d: %s\n", executed[FILENAME":"lineCount[FILENAME]]*1e6, $0)
#print executed[FILENAME":"lineCount[FILENAME]]+0 " : " $0
}
}
END {
}