File: test14.p

package info (click to toggle)
libdevel-nytprof-perl 5.06%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,396 kB
  • ctags: 1,413
  • sloc: perl: 4,905; ansic: 101; sh: 54; makefile: 17
file content (19 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# If the AutoSplit module has been loaded before we got initialized
# (specifically before we redirected the opcodes used when compiling)
# then the profiler won't profile AutoSplit code so the test will fail
# because the results won't match.
# The tricky part is that we need to take care to avoid being tripped up
# by the fact that XSLoader will fallback to using DynaLoader in some cases
# and DynaLoader uses AutoSplit.
# See Makefile.PL for how we avoid XSLoader fallback to using DynaLoader.

BEGIN {
  use AutoSplit;
  mkdir('./auto');
  autosplit('test14', './auto', 1, 0, 0);
}

use test14;
test14::pre();
test14::foo();
test14::bar();