| 1 | #!perl | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | |||
| 5 | package Devel::NYTProf::FileHandle; | ||
| 6 | |||
| 7 | # We have to jump through some hoops to load a second XS file from the same | ||
| 8 | # shared object. | ||
| 9 | |||
| 10 | require DynaLoader; | ||
| 11 | require Devel::NYTProf::Core; | ||
| 12 | |||
| 13 | my $c_name = 'boot_Devel__NYTProf__FileHandle'; | ||
| 14 | my $c = DynaLoader::dl_find_symbol_anywhere($c_name); | ||
| 15 | |||
| 16 | die "Can't locate '$c_name' in Devel::NYTProf shared object" unless $c; | ||
| 17 | my $xs = DynaLoader::dl_install_xsub(__PACKAGE__ . '::bootstrap', $c, __FILE__); | ||
| 18 | &$xs(__PACKAGE__, $Devel::NYTProf::Core::VERSION); | ||
| 19 |