File: exclusive-sub-time.pl

package info (click to toggle)
libdevel-nytprof-perl 6.06%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 2,532 kB
  • sloc: perl: 5,639; ansic: 107; makefile: 21
file content (14 lines) | stat: -rw-r--r-- 161 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# for testing exclusive time calculations
# use with NYTPROF=trace=3
sub a {
    sleep 2;
    b();
}
sub b {
    sleep 5;
    c();
}
sub c {
    sleep 3;
}
a();