| 1 |
|
| /* |
| 2 |
|
| * This file was generated automatically by ExtUtils::ParseXS version 3.63 from the |
| 3 |
|
| * contents of main.xs. Do not edit this file, edit main.xs instead. |
| 4 |
|
| * |
| 5 |
|
| * ANY CHANGES MADE HERE WILL BE LOST! |
| 6 |
|
| * |
| 7 |
|
| */ |
| 8 |
|
| |
| 9 |
|
| #line 1 "buildtmp/main.xs" |
| 10 |
|
| /* |
| 11 |
|
| * WARNING: This file was auto-generated. Changes will be lost! |
| 12 |
|
| */ |
| 13 |
|
| |
| 14 |
|
| |
| 15 |
|
| |
| 16 |
|
| #ifdef __cplusplus |
| 17 |
|
| extern "C" { |
| 18 |
|
| #endif |
| 19 |
|
| #include "EXTERN.h" |
| 20 |
|
| #include "perl.h" |
| 21 |
|
| #include "XSUB.h" |
| 22 |
|
| #include "ppport.h" |
| 23 |
|
| #undef do_open |
| 24 |
|
| #undef do_close |
| 25 |
|
| #ifdef __cplusplus |
| 26 |
|
| } |
| 27 |
|
| #endif |
| 28 |
|
| |
| 29 |
|
| #line 30 "buildtmp/StatProfiler.c" |
| 30 |
|
| #ifndef PERL_UNUSED_VAR |
| 31 |
|
| # define PERL_UNUSED_VAR(var) if (0) var = var |
| 32 |
|
| #endif |
| 33 |
|
| |
| 34 |
|
| #ifndef dVAR |
| 35 |
|
| # define dVAR dNOOP |
| 36 |
|
| #endif |
| 37 |
|
| |
| 38 |
|
| |
| 39 |
|
| /* This stuff is not part of the API! You have been warned. */ |
| 40 |
|
| #ifndef PERL_VERSION_DECIMAL |
| 41 |
|
| # define PERL_VERSION_DECIMAL(r,v,s) (r*1000000 + v*1000 + s) |
| 42 |
|
| #endif |
| 43 |
|
| #ifndef PERL_DECIMAL_VERSION |
| 44 |
|
| # define PERL_DECIMAL_VERSION \ |
| 45 |
|
| PERL_VERSION_DECIMAL(PERL_REVISION,PERL_VERSION,PERL_SUBVERSION) |
| 46 |
|
| #endif |
| 47 |
|
| #ifndef PERL_VERSION_GE |
| 48 |
|
| # define PERL_VERSION_GE(r,v,s) \ |
| 49 |
|
| (PERL_DECIMAL_VERSION >= PERL_VERSION_DECIMAL(r,v,s)) |
| 50 |
|
| #endif |
| 51 |
|
| #ifndef PERL_VERSION_LE |
| 52 |
|
| # define PERL_VERSION_LE(r,v,s) \ |
| 53 |
|
| (PERL_DECIMAL_VERSION <= PERL_VERSION_DECIMAL(r,v,s)) |
| 54 |
|
| #endif |
| 55 |
|
| |
| 56 |
|
| /* XS_INTERNAL is the explicit static-linkage variant of the default |
| 57 |
|
| * XS macro. |
| 58 |
|
| * |
| 59 |
|
| * XS_EXTERNAL is the same as XS_INTERNAL except it does not include |
| 60 |
|
| * "static", ie. it exports XSUB symbols. You probably don't want that |
| 61 |
|
| * for anything but the BOOT XSUB. |
| 62 |
|
| * |
| 63 |
|
| * See XSUB.h in core! |
| 64 |
|
| */ |
| 65 |
|
| |
| 66 |
|
| |
| 67 |
|
| /* TODO: This might be compatible further back than 5.10.0. */ |
| 68 |
|
| #if PERL_VERSION_GE(5, 10, 0) && PERL_VERSION_LE(5, 15, 1) |
| 69 |
|
| # undef XS_EXTERNAL |
| 70 |
|
| # undef XS_INTERNAL |
| 71 |
|
| # if defined(__CYGWIN__) && defined(USE_DYNAMIC_LOADING) |
| 72 |
|
| # define XS_EXTERNAL(name) __declspec(dllexport) XSPROTO(name) |
| 73 |
|
| # define XS_INTERNAL(name) static XSPROTO(name) |
| 74 |
|
| # endif |
| 75 |
|
| # if defined(__SYMBIAN32__) |
| 76 |
|
| # define XS_EXTERNAL(name) EXPORT_C XSPROTO(name) |
| 77 |
|
| # define XS_INTERNAL(name) EXPORT_C static XSPROTO(name) |
| 78 |
|
| # endif |
| 79 |
|
| # ifndef XS_EXTERNAL |
| 80 |
|
| # if defined(HASATTRIBUTE_UNUSED) && !defined(__cplusplus) |
| 81 |
|
| # define XS_EXTERNAL(name) void name(pTHX_ CV* cv __attribute__unused__) |
| 82 |
|
| # define XS_INTERNAL(name) static void name(pTHX_ CV* cv __attribute__unused__) |
| 83 |
|
| # else |
| 84 |
|
| # ifdef __cplusplus |
| 85 |
|
| # define XS_EXTERNAL(name) extern "C" XSPROTO(name) |
| 86 |
|
| # define XS_INTERNAL(name) static XSPROTO(name) |
| 87 |
|
| # else |
| 88 |
|
| # define XS_EXTERNAL(name) XSPROTO(name) |
| 89 |
|
| # define XS_INTERNAL(name) static XSPROTO(name) |
| 90 |
|
| # endif |
| 91 |
|
| # endif |
| 92 |
|
| # endif |
| 93 |
|
| #endif |
| 94 |
|
| |
| 95 |
|
| /* perl >= 5.10.0 && perl <= 5.15.1 */ |
| 96 |
|
| |
| 97 |
|
| |
| 98 |
|
| /* The XS_EXTERNAL macro is used for functions that must not be static |
| 99 |
|
| * like the boot XSUB of a module. If perl didn't have an XS_EXTERNAL |
| 100 |
|
| * macro defined, the best we can do is assume XS is the same. |
| 101 |
|
| * Dito for XS_INTERNAL. |
| 102 |
|
| */ |
| 103 |
|
| #ifndef XS_EXTERNAL |
| 104 |
|
| # define XS_EXTERNAL(name) XS(name) |
| 105 |
|
| #endif |
| 106 |
|
| #ifndef XS_INTERNAL |
| 107 |
|
| # define XS_INTERNAL(name) XS(name) |
| 108 |
|
| #endif |
| 109 |
|
| |
| 110 |
|
| /* Now, finally, after all this mess, we want an ExtUtils::ParseXS |
| 111 |
|
| * internal macro that we're free to redefine for varying linkage due |
| 112 |
|
| * to the EXPORT_XSUB_SYMBOLS XS keyword. This is internal, use |
| 113 |
|
| * XS_EXTERNAL(name) or XS_INTERNAL(name) in your code if you need to! |
| 114 |
|
| */ |
| 115 |
|
| |
| 116 |
|
| #undef XS_EUPXS |
| 117 |
|
| #if defined(PERL_EUPXS_ALWAYS_EXPORT) |
| 118 |
|
| # define XS_EUPXS(name) XS_EXTERNAL(name) |
| 119 |
|
| #else |
| 120 |
|
| /* default to internal */ |
| 121 |
|
| # define XS_EUPXS(name) XS_INTERNAL(name) |
| 122 |
|
| #endif |
| 123 |
|
| |
| 124 |
|
| #ifndef PERL_ARGS_ASSERT_CROAK_XS_USAGE |
| 125 |
|
| #define PERL_ARGS_ASSERT_CROAK_XS_USAGE assert(cv); assert(params) |
| 126 |
|
| |
| 127 |
|
| /* prototype to pass -Wmissing-prototypes */ |
| 128 |
|
| static void |
| 129 |
|
| S_croak_xs_usage(const CV *const cv, const char *const params); |
| 130 |
|
| |
| 131 |
|
| static void |
| 132 |
|
| S_croak_xs_usage(const CV *const cv, const char *const params) |
| 133 |
|
| { |
| 134 |
|
| const GV *const gv = CvGV(cv); |
| 135 |
|
| |
| 136 |
|
| PERL_ARGS_ASSERT_CROAK_XS_USAGE; |
| 137 |
|
| |
| 138 |
|
| if (gv) { |
| 139 |
|
| const char *const gvname = GvNAME(gv); |
| 140 |
|
| const HV *const stash = GvSTASH(gv); |
| 141 |
|
| const char *const hvname = stash ? HvNAME(stash) : NULL; |
| 142 |
|
| |
| 143 |
|
| if (hvname) |
| 144 |
|
| Perl_croak_nocontext("Usage: %s::%s(%s)", hvname, gvname, params); |
| 145 |
|
| else |
| 146 |
|
| Perl_croak_nocontext("Usage: %s(%s)", gvname, params); |
| 147 |
|
| } else { |
| 148 |
|
| /* Pants. I don't think that it should be possible to get here. */ |
| 149 |
|
| Perl_croak_nocontext("Usage: CODE(0x%" UVxf ")(%s)", PTR2UV(cv), params); |
| 150 |
|
| } |
| 151 |
|
| } |
| 152 |
|
| #undef PERL_ARGS_ASSERT_CROAK_XS_USAGE |
| 153 |
|
| |
| 154 |
|
| #define croak_xs_usage S_croak_xs_usage |
| 155 |
|
| |
| 156 |
|
| #endif |
| 157 |
|
| |
| 158 |
|
| /* NOTE: the prototype of newXSproto() is different in versions of perls, |
| 159 |
|
| * so we define a portable version of newXSproto() |
| 160 |
|
| */ |
| 161 |
|
| #ifdef newXS_flags |
| 162 |
|
| #define newXSproto_portable(name, c_impl, file, proto) newXS_flags(name, c_impl, file, proto, 0) |
| 163 |
|
| #else |
| 164 |
|
| #define newXSproto_portable(name, c_impl, file, proto) (PL_Sv=(SV*)newXS(name, c_impl, file), sv_setpv(PL_Sv, proto), (CV*)PL_Sv) |
| 165 |
|
| #endif /* !defined(newXS_flags) */ |
| 166 |
|
| |
| 167 |
|
| #if PERL_VERSION_LE(5, 21, 5) |
| 168 |
|
| # define newXS_deffile(a,b) Perl_newXS(aTHX_ a,b,file) |
| 169 |
|
| #else |
| 170 |
|
| # define newXS_deffile(a,b) Perl_newXS_deffile(aTHX_ a,b) |
| 171 |
|
| #endif |
| 172 |
|
| |
| 173 |
|
| /* simple backcompat versions of the TARGx() macros with no optimisation */ |
| 174 |
|
| #ifndef TARGi |
| 175 |
|
| # define TARGi(iv, do_taint) sv_setiv_mg(TARG, iv) |
| 176 |
|
| # define TARGu(uv, do_taint) sv_setuv_mg(TARG, uv) |
| 177 |
|
| # define TARGn(nv, do_taint) sv_setnv_mg(TARG, nv) |
| 178 |
|
| #endif |
| 179 |
|
| |
| 180 |
|
| #line 181 "buildtmp/StatProfiler.c" |
| 181 |
|
| |
| 182 |
|
| /* INCLUDE_COMMAND: Including output of '/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t "/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt" "/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/test.xsp"' from 'main.xs' */ |
| 183 |
|
| |
| 184 |
|
| #include <exception> |
| 185 |
|
| #undef xsp_constructor_class |
| 186 |
|
| #define xsp_constructor_class(c) (c) |
| 187 |
|
| #define _DEVEL_STATPROFILER_XSP |
| 188 |
|
| #include "runloop.h" |
| 189 |
|
| |
| 190 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Test__TiedHash_FETCH); /* prototype to pass -Wmissing-prototypes */ |
| 191 |
1 |
| XS_EUPXS(XS_Devel__StatProfiler__Test__TiedHash_FETCH) |
| 192 |
|
| { |
| 193 |
1 |
| dVAR; dXSARGS; |
| 194 |
1 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
1 |
1 |
|
| 195 |
0 |
| croak_xs_usage(cv, "self, key"); |
| 196 |
|
| { |
| 197 |
|
| SV * RETVAL; |
| 198 |
1 |
| SV* self = ST(0) |
| 199 |
|
| ; |
| 200 |
1 |
▶ | int key = (int)SvIV(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| int key = (int)SvIV(ST(1)) |
1 |
0 |
1 |
|
| 201 |
|
| ; |
| 202 |
|
| #line 22 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/test.xsp\"" |
| 203 |
|
| #if defined(_WIN32) |
| 204 |
|
| Sleep(key / 1000); |
| 205 |
|
| #else |
| 206 |
|
| timespec sleep = {0, key * 1000}; |
| 207 |
|
| while (nanosleep(&sleep, &sleep) == EINTR) |
| 208 |
|
| ; |
| 209 |
|
| #endif |
| 210 |
|
| devel::statprofiler::test_hires_usleep(key); |
| 211 |
|
| #line 212 "buildtmp/StatProfiler.c" |
| 212 |
|
| } |
| 213 |
1 |
| XSRETURN(1); |
| 214 |
|
| } |
| 215 |
|
| |
| 216 |
|
| |
| 217 |
|
| /* INCLUDE: Returning to 'main.xs' from '/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t "/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt" "/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/test.xsp"' */ |
| 218 |
|
| |
| 219 |
|
| |
| 220 |
|
| /* INCLUDE_COMMAND: Including output of '/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t "/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt" "/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp"' from 'main.xs' */ |
| 221 |
|
| |
| 222 |
|
| #include <exception> |
| 223 |
|
| #undef xsp_constructor_class |
| 224 |
|
| #define xsp_constructor_class(c) (c) |
| 225 |
|
| #define _DEVEL_STATPROFILER_XSP |
| 226 |
|
| #include "EXTERN.h" |
| 227 |
|
| #include "perl.h" |
| 228 |
|
| #include "ppport.h" |
| 229 |
|
| #include "runloop.h" |
| 230 |
|
| #include "tracefile.h" |
| 231 |
|
| |
| 232 |
|
| XS_EUPXS(XS_Devel__StatProfiler__install); /* prototype to pass -Wmissing-prototypes */ |
| 233 |
60 |
| XS_EUPXS(XS_Devel__StatProfiler__install) |
| 234 |
|
| { |
| 235 |
60 |
| dVAR; dXSARGS; |
| 236 |
60 |
▶ | if (items != 0) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 0) |
0 |
60 |
60 |
|
| 237 |
0 |
| croak_xs_usage(cv, ""); |
| 238 |
|
| { |
| 239 |
|
| #line 51 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 240 |
|
| try { |
| 241 |
|
| install_runloop(); |
| 242 |
|
| } |
| 243 |
|
| catch (std::exception& e) { |
| 244 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 245 |
|
| } |
| 246 |
|
| catch (...) { |
| 247 |
|
| croak("Caught C++ exception of unknown type"); |
| 248 |
|
| } |
| 249 |
|
| #line 250 "buildtmp/StatProfiler.c" |
| 250 |
|
| } |
| 251 |
60 |
| XSRETURN_EMPTY; |
| 252 |
|
| } |
| 253 |
|
| |
| 254 |
|
| |
| 255 |
|
| XS_EUPXS(XS_Devel__StatProfiler_set_enabled); /* prototype to pass -Wmissing-prototypes */ |
| 256 |
11 |
| XS_EUPXS(XS_Devel__StatProfiler_set_enabled) |
| 257 |
|
| { |
| 258 |
11 |
| dVAR; dXSARGS; |
| 259 |
11 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
11 |
11 |
|
| 260 |
0 |
| croak_xs_usage(cv, "enabled"); |
| 261 |
|
| { |
| 262 |
11 |
▶ | bool enabled = (bool)SvTRUE(ST(0)) |
Branch: 1 branch
| Branch | True | False | Total |
| bool enabled = (bool)SvTRUE(ST(0)) |
11 |
0 |
11 |
|
| 263 |
|
| ; |
| 264 |
|
| #line 64 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 265 |
|
| try { |
| 266 |
|
| set_enabled( enabled ); |
| 267 |
|
| } |
| 268 |
|
| catch (std::exception& e) { |
| 269 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 270 |
|
| } |
| 271 |
|
| catch (...) { |
| 272 |
|
| croak("Caught C++ exception of unknown type"); |
| 273 |
|
| } |
| 274 |
|
| #line 275 "buildtmp/StatProfiler.c" |
| 275 |
|
| } |
| 276 |
11 |
| XSRETURN_EMPTY; |
| 277 |
|
| } |
| 278 |
|
| |
| 279 |
|
| |
| 280 |
|
| XS_EUPXS(XS_Devel__StatProfiler_set_output_file); /* prototype to pass -Wmissing-prototypes */ |
| 281 |
59 |
| XS_EUPXS(XS_Devel__StatProfiler_set_output_file) |
| 282 |
|
| { |
| 283 |
59 |
| dVAR; dXSARGS; |
| 284 |
59 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
59 |
59 |
|
| 285 |
0 |
| croak_xs_usage(cv, "path, is_template"); |
| 286 |
|
| { |
| 287 |
59 |
| const char* path = (const char *)SvPV_nolen(ST(0)) |
| 288 |
|
| ; |
| 289 |
59 |
▶ | bool is_template = (bool)SvTRUE(ST(1)) |
Branch: 1 branch
| Branch | True | False | Total |
| bool is_template = (bool)SvTRUE(ST(1)) |
59 |
0 |
59 |
|
| 290 |
|
| ; |
| 291 |
|
| #line 77 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 292 |
|
| try { |
| 293 |
|
| set_output_file( path, is_template ); |
| 294 |
|
| } |
| 295 |
|
| catch (std::exception& e) { |
| 296 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 297 |
|
| } |
| 298 |
|
| catch (...) { |
| 299 |
|
| croak("Caught C++ exception of unknown type"); |
| 300 |
|
| } |
| 301 |
|
| #line 302 "buildtmp/StatProfiler.c" |
| 302 |
|
| } |
| 303 |
59 |
| XSRETURN_EMPTY; |
| 304 |
|
| } |
| 305 |
|
| |
| 306 |
|
| |
| 307 |
|
| XS_EUPXS(XS_Devel__StatProfiler_set_sampling_interval); /* prototype to pass -Wmissing-prototypes */ |
| 308 |
46 |
| XS_EUPXS(XS_Devel__StatProfiler_set_sampling_interval) |
| 309 |
|
| { |
| 310 |
46 |
| dVAR; dXSARGS; |
| 311 |
46 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
46 |
46 |
|
| 312 |
0 |
| croak_xs_usage(cv, "interval"); |
| 313 |
|
| { |
| 314 |
46 |
▶ | unsigned int interval = (unsigned int)SvUV(ST(0)) |
Branch: 1 branch
| Branch | True | False | Total |
| unsigned int interval = (unsigned int)SvUV(ST(0)) |
46 |
0 |
46 |
|
| 315 |
|
| ; |
| 316 |
|
| #line 90 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 317 |
|
| try { |
| 318 |
|
| set_sampling_interval( interval ); |
| 319 |
|
| } |
| 320 |
|
| catch (std::exception& e) { |
| 321 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 322 |
|
| } |
| 323 |
|
| catch (...) { |
| 324 |
|
| croak("Caught C++ exception of unknown type"); |
| 325 |
|
| } |
| 326 |
|
| #line 327 "buildtmp/StatProfiler.c" |
| 327 |
|
| } |
| 328 |
46 |
| XSRETURN_EMPTY; |
| 329 |
|
| } |
| 330 |
|
| |
| 331 |
|
| |
| 332 |
|
| XS_EUPXS(XS_Devel__StatProfiler_set_stack_collection_depth); /* prototype to pass -Wmissing-prototypes */ |
| 333 |
0 |
| XS_EUPXS(XS_Devel__StatProfiler_set_stack_collection_depth) |
| 334 |
|
| { |
| 335 |
0 |
| dVAR; dXSARGS; |
| 336 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 337 |
0 |
| croak_xs_usage(cv, "num_stack_frames"); |
| 338 |
|
| { |
| 339 |
0 |
▶ | unsigned int num_stack_frames = (unsigned int)SvUV(ST(0)) |
Branch: 1 branch
| Branch | True | False | Total |
| unsigned int num_stack_frames = (unsigned int)SvUV(ST(0)) |
0 |
0 |
0 |
|
| 340 |
|
| ; |
| 341 |
|
| #line 103 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 342 |
|
| try { |
| 343 |
|
| set_stack_collection_depth( num_stack_frames ); |
| 344 |
|
| } |
| 345 |
|
| catch (std::exception& e) { |
| 346 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 347 |
|
| } |
| 348 |
|
| catch (...) { |
| 349 |
|
| croak("Caught C++ exception of unknown type"); |
| 350 |
|
| } |
| 351 |
|
| #line 352 "buildtmp/StatProfiler.c" |
| 352 |
|
| } |
| 353 |
0 |
| XSRETURN_EMPTY; |
| 354 |
|
| } |
| 355 |
|
| |
| 356 |
|
| |
| 357 |
|
| XS_EUPXS(XS_Devel__StatProfiler_set_max_output_file_size); /* prototype to pass -Wmissing-prototypes */ |
| 358 |
2 |
| XS_EUPXS(XS_Devel__StatProfiler_set_max_output_file_size) |
| 359 |
|
| { |
| 360 |
2 |
| dVAR; dXSARGS; |
| 361 |
2 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
2 |
2 |
|
| 362 |
0 |
| croak_xs_usage(cv, "max_size"); |
| 363 |
|
| { |
| 364 |
2 |
▶ | size_t max_size = (size_t)SvUV(ST(0)) |
Branch: 1 branch
| Branch | True | False | Total |
| size_t max_size = (size_t)SvUV(ST(0)) |
2 |
0 |
2 |
|
| 365 |
|
| ; |
| 366 |
|
| #line 116 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 367 |
|
| try { |
| 368 |
|
| set_max_output_file_size( max_size ); |
| 369 |
|
| } |
| 370 |
|
| catch (std::exception& e) { |
| 371 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 372 |
|
| } |
| 373 |
|
| catch (...) { |
| 374 |
|
| croak("Caught C++ exception of unknown type"); |
| 375 |
|
| } |
| 376 |
|
| #line 377 "buildtmp/StatProfiler.c" |
| 377 |
|
| } |
| 378 |
2 |
| XSRETURN_EMPTY; |
| 379 |
|
| } |
| 380 |
|
| |
| 381 |
|
| |
| 382 |
|
| XS_EUPXS(XS_Devel__StatProfiler_set_save_source); /* prototype to pass -Wmissing-prototypes */ |
| 383 |
17 |
| XS_EUPXS(XS_Devel__StatProfiler_set_save_source) |
| 384 |
|
| { |
| 385 |
17 |
| dVAR; dXSARGS; |
| 386 |
17 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
17 |
17 |
|
| 387 |
0 |
| croak_xs_usage(cv, "save_source"); |
| 388 |
|
| { |
| 389 |
17 |
▶ | unsigned int save_source = (unsigned int)SvUV(ST(0)) |
Branch: 1 branch
| Branch | True | False | Total |
| unsigned int save_source = (unsigned int)SvUV(ST(0)) |
17 |
0 |
17 |
|
| 390 |
|
| ; |
| 391 |
|
| #line 129 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 392 |
|
| try { |
| 393 |
|
| set_save_source( save_source ); |
| 394 |
|
| } |
| 395 |
|
| catch (std::exception& e) { |
| 396 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 397 |
|
| } |
| 398 |
|
| catch (...) { |
| 399 |
|
| croak("Caught C++ exception of unknown type"); |
| 400 |
|
| } |
| 401 |
|
| #line 402 "buildtmp/StatProfiler.c" |
| 402 |
|
| } |
| 403 |
17 |
| XSRETURN_EMPTY; |
| 404 |
|
| } |
| 405 |
|
| |
| 406 |
|
| |
| 407 |
|
| XS_EUPXS(XS_Devel__StatProfiler_set_global_metadata); /* prototype to pass -Wmissing-prototypes */ |
| 408 |
0 |
| XS_EUPXS(XS_Devel__StatProfiler_set_global_metadata) |
| 409 |
|
| { |
| 410 |
0 |
| dVAR; dXSARGS; |
| 411 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 412 |
0 |
| croak_xs_usage(cv, "metadata"); |
| 413 |
|
| { |
| 414 |
|
| HV* metadata; |
| 415 |
|
| |
| 416 |
|
| STMT_START { |
| 417 |
0 |
| SV* const xsub_tmp_sv = ST(0); |
| 418 |
0 |
| SvGETMAGIC(xsub_tmp_sv); |
| 419 |
0 |
▶ | if (SvROK(xsub_tmp_sv) && SvTYPE(SvRV(xsub_tmp_sv)) == SVt_PVHV){ |
Branch: 2 branches
| Branch | True | False | Total |
| if (SvROK(xsub_tmp_sv) && SvTYPE(SvRV(xsub_tmp_sv)) == SVt_PVHV){ |
0 |
0 |
0 |
| if (SvROK(xsub_tmp_sv) && SvTYPE(SvRV(xsub_tmp_sv)) == SVt_PVHV){ |
0 |
0 |
0 |
|
| 420 |
0 |
| metadata = (HV*)SvRV(xsub_tmp_sv); |
| 421 |
|
| } |
| 422 |
|
| else{ |
| 423 |
0 |
| Perl_croak_nocontext("%s: %s is not a HASH reference", |
| 424 |
|
| "Devel::StatProfiler::set_global_metadata", |
| 425 |
|
| "metadata"); |
| 426 |
|
| } |
| 427 |
|
| } STMT_END |
| 428 |
|
| ; |
| 429 |
|
| #line 142 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 430 |
|
| set_global_metadata(aTHX_ metadata); |
| 431 |
|
| #line 432 "buildtmp/StatProfiler.c" |
| 432 |
|
| } |
| 433 |
0 |
| XSRETURN_EMPTY; |
| 434 |
|
| } |
| 435 |
|
| |
| 436 |
|
| |
| 437 |
|
| XS_EUPXS(XS_Devel__StatProfiler_write_custom_metadata); /* prototype to pass -Wmissing-prototypes */ |
| 438 |
57 |
| XS_EUPXS(XS_Devel__StatProfiler_write_custom_metadata) |
| 439 |
|
| { |
| 440 |
57 |
| dVAR; dXSARGS; |
| 441 |
57 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
57 |
57 |
|
| 442 |
0 |
| croak_xs_usage(cv, "key, value"); |
| 443 |
|
| { |
| 444 |
57 |
| SV* key = ST(0) |
| 445 |
|
| ; |
| 446 |
57 |
| SV* value = ST(1) |
| 447 |
|
| ; |
| 448 |
|
| #line 147 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 449 |
|
| write_custom_metadata(aTHX_ key, value); |
| 450 |
|
| #line 451 "buildtmp/StatProfiler.c" |
| 451 |
|
| } |
| 452 |
57 |
| XSRETURN_EMPTY; |
| 453 |
|
| } |
| 454 |
|
| |
| 455 |
|
| |
| 456 |
|
| XS_EUPXS(XS_Devel__StatProfiler_start_section); /* prototype to pass -Wmissing-prototypes */ |
| 457 |
57 |
| XS_EUPXS(XS_Devel__StatProfiler_start_section) |
| 458 |
|
| { |
| 459 |
57 |
| dVAR; dXSARGS; |
| 460 |
57 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
57 |
57 |
|
| 461 |
0 |
| croak_xs_usage(cv, "section_name"); |
| 462 |
|
| { |
| 463 |
57 |
| SV* section_name = ST(0) |
| 464 |
|
| ; |
| 465 |
|
| #line 152 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 466 |
|
| start_section(aTHX_ section_name); |
| 467 |
|
| #line 468 "buildtmp/StatProfiler.c" |
| 468 |
|
| } |
| 469 |
57 |
| XSRETURN_EMPTY; |
| 470 |
|
| } |
| 471 |
|
| |
| 472 |
|
| |
| 473 |
|
| XS_EUPXS(XS_Devel__StatProfiler_end_section); /* prototype to pass -Wmissing-prototypes */ |
| 474 |
56 |
| XS_EUPXS(XS_Devel__StatProfiler_end_section) |
| 475 |
|
| { |
| 476 |
56 |
| dVAR; dXSARGS; |
| 477 |
56 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
56 |
56 |
|
| 478 |
0 |
| croak_xs_usage(cv, "section_name"); |
| 479 |
|
| { |
| 480 |
56 |
| SV* section_name = ST(0) |
| 481 |
|
| ; |
| 482 |
|
| #line 157 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 483 |
|
| end_section(aTHX_ section_name); |
| 484 |
|
| #line 485 "buildtmp/StatProfiler.c" |
| 485 |
|
| } |
| 486 |
56 |
| XSRETURN_EMPTY; |
| 487 |
|
| } |
| 488 |
|
| |
| 489 |
|
| |
| 490 |
|
| XS_EUPXS(XS_Devel__StatProfiler_get_precision); /* prototype to pass -Wmissing-prototypes */ |
| 491 |
209 |
| XS_EUPXS(XS_Devel__StatProfiler_get_precision) |
| 492 |
|
| { |
| 493 |
209 |
| dVAR; dXSARGS; |
| 494 |
209 |
▶ | if (items != 0) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 0) |
0 |
209 |
209 |
|
| 495 |
0 |
| croak_xs_usage(cv, ""); |
| 496 |
|
| { |
| 497 |
|
| int RETVAL; |
| 498 |
209 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
209 |
0 |
209 |
| dXSTARG; |
209 |
0 |
209 |
|
| 499 |
|
| #line 162 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 500 |
|
| try { |
| 501 |
|
| RETVAL = get_precision(); |
| 502 |
|
| } |
| 503 |
|
| catch (std::exception& e) { |
| 504 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 505 |
|
| } |
| 506 |
|
| catch (...) { |
| 507 |
|
| croak("Caught C++ exception of unknown type"); |
| 508 |
|
| } |
| 509 |
|
| #line 510 "buildtmp/StatProfiler.c" |
| 510 |
209 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
180 |
29 |
209 |
|
| 511 |
209 |
| ST(0) = TARG; |
| 512 |
|
| } |
| 513 |
209 |
| XSRETURN(1); |
| 514 |
|
| } |
| 515 |
|
| |
| 516 |
|
| |
| 517 |
|
| XS_EUPXS(XS_Devel__StatProfiler_is_running); /* prototype to pass -Wmissing-prototypes */ |
| 518 |
1 |
| XS_EUPXS(XS_Devel__StatProfiler_is_running) |
| 519 |
|
| { |
| 520 |
1 |
| dVAR; dXSARGS; |
| 521 |
1 |
▶ | if (items != 0) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 0) |
0 |
1 |
1 |
|
| 522 |
0 |
| croak_xs_usage(cv, ""); |
| 523 |
|
| { |
| 524 |
|
| bool RETVAL; |
| 525 |
|
| #line 176 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 526 |
|
| try { |
| 527 |
|
| RETVAL = is_running(); |
| 528 |
|
| } |
| 529 |
|
| catch (std::exception& e) { |
| 530 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 531 |
|
| } |
| 532 |
|
| catch (...) { |
| 533 |
|
| croak("Caught C++ exception of unknown type"); |
| 534 |
|
| } |
| 535 |
|
| #line 536 "buildtmp/StatProfiler.c" |
| 536 |
1 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
0 |
1 |
1 |
|
| 537 |
|
| } |
| 538 |
1 |
| XSRETURN(1); |
| 539 |
|
| } |
| 540 |
|
| |
| 541 |
|
| |
| 542 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Test_test_enable); /* prototype to pass -Wmissing-prototypes */ |
| 543 |
55 |
| XS_EUPXS(XS_Devel__StatProfiler__Test_test_enable) |
| 544 |
|
| { |
| 545 |
55 |
| dVAR; dXSARGS; |
| 546 |
55 |
▶ | if (items != 0) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 0) |
0 |
55 |
55 |
|
| 547 |
0 |
| croak_xs_usage(cv, ""); |
| 548 |
|
| { |
| 549 |
|
| #line 193 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 550 |
|
| try { |
| 551 |
|
| test_enable(); |
| 552 |
|
| } |
| 553 |
|
| catch (std::exception& e) { |
| 554 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 555 |
|
| } |
| 556 |
|
| catch (...) { |
| 557 |
|
| croak("Caught C++ exception of unknown type"); |
| 558 |
|
| } |
| 559 |
|
| #line 560 "buildtmp/StatProfiler.c" |
| 560 |
|
| } |
| 561 |
55 |
| XSRETURN_EMPTY; |
| 562 |
|
| } |
| 563 |
|
| |
| 564 |
|
| |
| 565 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Test_test_force_sample); /* prototype to pass -Wmissing-prototypes */ |
| 566 |
0 |
| XS_EUPXS(XS_Devel__StatProfiler__Test_test_force_sample) |
| 567 |
|
| { |
| 568 |
0 |
| dVAR; dXSARGS; |
| 569 |
0 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
0 |
0 |
|
| 570 |
0 |
| croak_xs_usage(cv, "increment"); |
| 571 |
|
| { |
| 572 |
0 |
▶ | unsigned int increment = (unsigned int)SvUV(ST(0)) |
Branch: 1 branch
| Branch | True | False | Total |
| unsigned int increment = (unsigned int)SvUV(ST(0)) |
0 |
0 |
0 |
|
| 573 |
|
| ; |
| 574 |
|
| #line 206 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 575 |
|
| try { |
| 576 |
|
| test_force_sample( increment ); |
| 577 |
|
| } |
| 578 |
|
| catch (std::exception& e) { |
| 579 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 580 |
|
| } |
| 581 |
|
| catch (...) { |
| 582 |
|
| croak("Caught C++ exception of unknown type"); |
| 583 |
|
| } |
| 584 |
|
| #line 585 "buildtmp/StatProfiler.c" |
| 585 |
|
| } |
| 586 |
0 |
| XSRETURN_EMPTY; |
| 587 |
|
| } |
| 588 |
|
| |
| 589 |
|
| |
| 590 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Test_test_hires_usleep); /* prototype to pass -Wmissing-prototypes */ |
| 591 |
9695 |
| XS_EUPXS(XS_Devel__StatProfiler__Test_test_hires_usleep) |
| 592 |
|
| { |
| 593 |
9695 |
| dVAR; dXSARGS; |
| 594 |
9695 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
9695 |
9695 |
|
| 595 |
0 |
| croak_xs_usage(cv, "usec"); |
| 596 |
|
| { |
| 597 |
|
| double RETVAL; |
| 598 |
9695 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
9695 |
0 |
9695 |
|
| 599 |
9695 |
▶ | unsigned int usec = (unsigned int)SvUV(ST(0)) |
Branch: 1 branch
| Branch | True | False | Total |
| unsigned int usec = (unsigned int)SvUV(ST(0)) |
9695 |
0 |
9695 |
|
| 600 |
|
| ; |
| 601 |
|
| #line 219 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 602 |
|
| try { |
| 603 |
|
| RETVAL = test_hires_usleep( usec ); |
| 604 |
|
| } |
| 605 |
|
| catch (std::exception& e) { |
| 606 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 607 |
|
| } |
| 608 |
|
| catch (...) { |
| 609 |
|
| croak("Caught C++ exception of unknown type"); |
| 610 |
|
| } |
| 611 |
|
| #line 612 "buildtmp/StatProfiler.c" |
| 612 |
9695 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
9634 |
61 |
9695 |
|
| 613 |
9695 |
| ST(0) = TARG; |
| 614 |
|
| } |
| 615 |
9695 |
| XSRETURN(1); |
| 616 |
|
| } |
| 617 |
|
| |
| 618 |
|
| |
| 619 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Test_test_hires_sleep); /* prototype to pass -Wmissing-prototypes */ |
| 620 |
26 |
| XS_EUPXS(XS_Devel__StatProfiler__Test_test_hires_sleep) |
| 621 |
|
| { |
| 622 |
26 |
| dVAR; dXSARGS; |
| 623 |
26 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
26 |
26 |
|
| 624 |
0 |
| croak_xs_usage(cv, "sleep"); |
| 625 |
|
| { |
| 626 |
|
| double RETVAL; |
| 627 |
26 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
26 |
0 |
26 |
|
| 628 |
26 |
▶ | double sleep = (double)SvNV(ST(0)) |
Branch: 1 branch
| Branch | True | False | Total |
| double sleep = (double)SvNV(ST(0)) |
26 |
0 |
26 |
|
| 629 |
|
| ; |
| 630 |
|
| #line 233 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 631 |
|
| try { |
| 632 |
|
| RETVAL = test_hires_sleep( sleep ); |
| 633 |
|
| } |
| 634 |
|
| catch (std::exception& e) { |
| 635 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 636 |
|
| } |
| 637 |
|
| catch (...) { |
| 638 |
|
| croak("Caught C++ exception of unknown type"); |
| 639 |
|
| } |
| 640 |
|
| #line 641 "buildtmp/StatProfiler.c" |
| 641 |
26 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
6 |
20 |
26 |
|
| 642 |
26 |
| ST(0) = TARG; |
| 643 |
|
| } |
| 644 |
26 |
| XSRETURN(1); |
| 645 |
|
| } |
| 646 |
|
| |
| 647 |
|
| |
| 648 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Test_test_hires_time); /* prototype to pass -Wmissing-prototypes */ |
| 649 |
88 |
| XS_EUPXS(XS_Devel__StatProfiler__Test_test_hires_time) |
| 650 |
|
| { |
| 651 |
88 |
| dVAR; dXSARGS; |
| 652 |
88 |
▶ | if (items != 0) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 0) |
0 |
88 |
88 |
|
| 653 |
0 |
| croak_xs_usage(cv, ""); |
| 654 |
|
| { |
| 655 |
|
| double RETVAL; |
| 656 |
88 |
▶ | dXSTARG; |
Branch: 2 branches
| Branch | True | False | Total |
| dXSTARG; |
88 |
0 |
88 |
| dXSTARG; |
88 |
0 |
88 |
|
| 657 |
|
| #line 247 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 658 |
|
| try { |
| 659 |
|
| RETVAL = test_hires_time(); |
| 660 |
|
| } |
| 661 |
|
| catch (std::exception& e) { |
| 662 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 663 |
|
| } |
| 664 |
|
| catch (...) { |
| 665 |
|
| croak("Caught C++ exception of unknown type"); |
| 666 |
|
| } |
| 667 |
|
| #line 668 "buildtmp/StatProfiler.c" |
| 668 |
88 |
▶ | TARGn((double)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGn((double)RETVAL, 1); |
20 |
68 |
88 |
|
| 669 |
88 |
| ST(0) = TARG; |
| 670 |
|
| } |
| 671 |
88 |
| XSRETURN(1); |
| 672 |
|
| } |
| 673 |
|
| |
| 674 |
|
| #undef xsp_constructor_class |
| 675 |
|
| #define xsp_constructor_class(c) (CLASS) |
| 676 |
|
| |
| 677 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_new); /* prototype to pass -Wmissing-prototypes */ |
| 678 |
5605 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_new) |
| 679 |
|
| { |
| 680 |
5605 |
| dVAR; dXSARGS; |
| 681 |
5605 |
▶ | if (items < 2 || items > 3) |
Branch: 2 branches
| Branch | True | False | Total |
| if (items < 2 || items > 3) |
5605 |
0 |
5605 |
| if (items < 2 || items > 3) |
0 |
5605 |
5605 |
|
| 682 |
0 |
| croak_xs_usage(cv, "CLASS, path, mapper= NULL"); |
| 683 |
|
| { |
| 684 |
5605 |
| char * CLASS = (char *)SvPV_nolen(ST(0)) |
| 685 |
|
| ; |
| 686 |
|
| TraceFileReader * RETVAL; |
| 687 |
5605 |
| SV* path = ST(1) |
| 688 |
|
| ; |
| 689 |
|
| SV* mapper; |
| 690 |
|
| |
| 691 |
5605 |
▶ | if (items < 3) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items < 3) |
309 |
5296 |
5605 |
|
| 692 |
309 |
| mapper = NULL; |
| 693 |
|
| else { |
| 694 |
5296 |
| mapper = ST(2) |
| 695 |
|
| ; |
| 696 |
|
| } |
| 697 |
|
| #line 267 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 698 |
|
| STRLEN len; |
| 699 |
|
| const char *str = SvPV(path, len); |
| 700 |
|
| const std::string pathstr(str, len); |
| 701 |
|
| RETVAL = new TraceFileReader(aTHX_ mapper); |
| 702 |
|
| RETVAL->open(pathstr); |
| 703 |
|
| #line 704 "buildtmp/StatProfiler.c" |
| 704 |
|
| { |
| 705 |
|
| SV * RETVALSV; |
| 706 |
5604 |
▶ | RETVALSV = sv_newmortal(); |
Branch: 1 branch
| Branch | True | False | Total |
| RETVALSV = sv_newmortal(); |
5604 |
0 |
5604 |
|
| 707 |
5604 |
▶ | sv_setref_pv( RETVALSV, xsp_constructor_class("TraceFileReader"), (void*)RETVAL ); |
Branch: 1 branch
| Branch | True | False | Total |
| sv_setref_pv( RETVALSV, xsp_constructor_class("TraceFileReader"), (void*)RETVAL ); |
5604 |
0 |
5604 |
|
| 708 |
5604 |
| ST(0) = RETVALSV; |
| 709 |
|
| } |
| 710 |
5604 |
| } |
| 711 |
5604 |
| XSRETURN(1); |
| 712 |
|
| } |
| 713 |
|
| |
| 714 |
|
| #undef xsp_constructor_class |
| 715 |
|
| #define xsp_constructor_class(c) (c) |
| 716 |
|
| |
| 717 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_DESTROY); /* prototype to pass -Wmissing-prototypes */ |
| 718 |
5604 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_DESTROY) |
| 719 |
|
| { |
| 720 |
5604 |
| dVAR; dXSARGS; |
| 721 |
5604 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
5604 |
5604 |
|
| 722 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 723 |
|
| { |
| 724 |
|
| TraceFileReader * THIS; |
| 725 |
|
| |
| 726 |
5604 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
5604 |
0 |
5604 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
5604 |
0 |
5604 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
5604 |
0 |
5604 |
|
| 727 |
5604 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 728 |
|
| else{ |
| 729 |
0 |
| warn( "Devel::StatProfiler::Reader::DESTROY() -- THIS is not a blessed SV reference" ); |
| 730 |
0 |
| XSRETURN_UNDEF; |
| 731 |
|
| } |
| 732 |
|
| ; |
| 733 |
|
| #line 280 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 734 |
|
| try { |
| 735 |
|
| delete THIS; |
| 736 |
|
| } |
| 737 |
|
| catch (std::exception& e) { |
| 738 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 739 |
|
| } |
| 740 |
|
| catch (...) { |
| 741 |
|
| croak("Caught C++ exception of unknown type"); |
| 742 |
|
| } |
| 743 |
|
| #line 744 "buildtmp/StatProfiler.c" |
| 744 |
|
| } |
| 745 |
5604 |
| XSRETURN_EMPTY; |
| 746 |
|
| } |
| 747 |
|
| |
| 748 |
|
| |
| 749 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_read_trace); /* prototype to pass -Wmissing-prototypes */ |
| 750 |
37372 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_read_trace) |
| 751 |
|
| { |
| 752 |
37372 |
| dVAR; dXSARGS; |
| 753 |
37372 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
37372 |
37372 |
|
| 754 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 755 |
|
| { |
| 756 |
|
| TraceFileReader * THIS; |
| 757 |
|
| SV * RETVAL; |
| 758 |
|
| |
| 759 |
37372 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
37372 |
0 |
37372 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
37372 |
0 |
37372 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
37372 |
0 |
37372 |
|
| 760 |
37372 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 761 |
|
| else{ |
| 762 |
0 |
| warn( "Devel::StatProfiler::Reader::read_trace() -- THIS is not a blessed SV reference" ); |
| 763 |
0 |
| XSRETURN_UNDEF; |
| 764 |
|
| } |
| 765 |
|
| ; |
| 766 |
|
| #line 293 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 767 |
|
| try { |
| 768 |
|
| RETVAL = THIS->read_trace(); |
| 769 |
|
| } |
| 770 |
|
| catch (std::exception& e) { |
| 771 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 772 |
|
| } |
| 773 |
|
| catch (...) { |
| 774 |
|
| croak("Caught C++ exception of unknown type"); |
| 775 |
|
| } |
| 776 |
|
| #line 777 "buildtmp/StatProfiler.c" |
| 777 |
37372 |
| RETVAL = sv_2mortal(RETVAL); |
| 778 |
37372 |
| ST(0) = RETVAL; |
| 779 |
|
| } |
| 780 |
37372 |
| XSRETURN(1); |
| 781 |
|
| } |
| 782 |
|
| |
| 783 |
|
| |
| 784 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_format_version); /* prototype to pass -Wmissing-prototypes */ |
| 785 |
1 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_format_version) |
| 786 |
|
| { |
| 787 |
1 |
| dVAR; dXSARGS; |
| 788 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 789 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 790 |
|
| { |
| 791 |
|
| TraceFileReader * THIS; |
| 792 |
|
| int RETVAL; |
| 793 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 794 |
|
| |
| 795 |
1 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
1 |
0 |
1 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
1 |
0 |
1 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
1 |
0 |
1 |
|
| 796 |
1 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 797 |
|
| else{ |
| 798 |
0 |
| warn( "Devel::StatProfiler::Reader::get_format_version() -- THIS is not a blessed SV reference" ); |
| 799 |
0 |
| XSRETURN_UNDEF; |
| 800 |
|
| } |
| 801 |
|
| ; |
| 802 |
|
| #line 307 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 803 |
|
| try { |
| 804 |
|
| RETVAL = THIS->get_format_version(); |
| 805 |
|
| } |
| 806 |
|
| catch (std::exception& e) { |
| 807 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 808 |
|
| } |
| 809 |
|
| catch (...) { |
| 810 |
|
| croak("Caught C++ exception of unknown type"); |
| 811 |
|
| } |
| 812 |
|
| #line 813 "buildtmp/StatProfiler.c" |
| 813 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 814 |
1 |
| ST(0) = TARG; |
| 815 |
|
| } |
| 816 |
1 |
| XSRETURN(1); |
| 817 |
|
| } |
| 818 |
|
| |
| 819 |
|
| |
| 820 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_source_tick_duration); /* prototype to pass -Wmissing-prototypes */ |
| 821 |
9999 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_source_tick_duration) |
| 822 |
|
| { |
| 823 |
9999 |
| dVAR; dXSARGS; |
| 824 |
9999 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
9999 |
9999 |
|
| 825 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 826 |
|
| { |
| 827 |
|
| TraceFileReader * THIS; |
| 828 |
|
| int RETVAL; |
| 829 |
9999 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
9999 |
0 |
9999 |
|
| 830 |
|
| |
| 831 |
9999 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
9999 |
0 |
9999 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
9999 |
0 |
9999 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
9999 |
0 |
9999 |
|
| 832 |
9999 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 833 |
|
| else{ |
| 834 |
0 |
| warn( "Devel::StatProfiler::Reader::get_source_tick_duration() -- THIS is not a blessed SV reference" ); |
| 835 |
0 |
| XSRETURN_UNDEF; |
| 836 |
|
| } |
| 837 |
|
| ; |
| 838 |
|
| #line 321 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 839 |
|
| try { |
| 840 |
|
| RETVAL = THIS->get_source_tick_duration(); |
| 841 |
|
| } |
| 842 |
|
| catch (std::exception& e) { |
| 843 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 844 |
|
| } |
| 845 |
|
| catch (...) { |
| 846 |
|
| croak("Caught C++ exception of unknown type"); |
| 847 |
|
| } |
| 848 |
|
| #line 849 "buildtmp/StatProfiler.c" |
| 849 |
9999 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
9976 |
23 |
9999 |
|
| 850 |
9999 |
| ST(0) = TARG; |
| 851 |
|
| } |
| 852 |
9999 |
| XSRETURN(1); |
| 853 |
|
| } |
| 854 |
|
| |
| 855 |
|
| |
| 856 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_source_stack_sample_depth); /* prototype to pass -Wmissing-prototypes */ |
| 857 |
1 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_source_stack_sample_depth) |
| 858 |
|
| { |
| 859 |
1 |
| dVAR; dXSARGS; |
| 860 |
1 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
1 |
1 |
|
| 861 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 862 |
|
| { |
| 863 |
|
| TraceFileReader * THIS; |
| 864 |
|
| int RETVAL; |
| 865 |
1 |
▶ | dXSTARG; |
Branch: 1 branch
| Branch | True | False | Total |
| dXSTARG; |
1 |
0 |
1 |
|
| 866 |
|
| |
| 867 |
1 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
1 |
0 |
1 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
1 |
0 |
1 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
1 |
0 |
1 |
|
| 868 |
1 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 869 |
|
| else{ |
| 870 |
0 |
| warn( "Devel::StatProfiler::Reader::get_source_stack_sample_depth() -- THIS is not a blessed SV reference" ); |
| 871 |
0 |
| XSRETURN_UNDEF; |
| 872 |
|
| } |
| 873 |
|
| ; |
| 874 |
|
| #line 335 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 875 |
|
| try { |
| 876 |
|
| RETVAL = THIS->get_source_stack_sample_depth(); |
| 877 |
|
| } |
| 878 |
|
| catch (std::exception& e) { |
| 879 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 880 |
|
| } |
| 881 |
|
| catch (...) { |
| 882 |
|
| croak("Caught C++ exception of unknown type"); |
| 883 |
|
| } |
| 884 |
|
| #line 885 "buildtmp/StatProfiler.c" |
| 885 |
1 |
▶ | TARGi((IV)RETVAL, 1); |
Branch: 1 branch
| Branch | True | False | Total |
| TARGi((IV)RETVAL, 1); |
0 |
1 |
1 |
|
| 886 |
1 |
| ST(0) = TARG; |
| 887 |
|
| } |
| 888 |
1 |
| XSRETURN(1); |
| 889 |
|
| } |
| 890 |
|
| |
| 891 |
|
| |
| 892 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_custom_metadata); /* prototype to pass -Wmissing-prototypes */ |
| 893 |
50098 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_custom_metadata) |
| 894 |
|
| { |
| 895 |
50098 |
| dVAR; dXSARGS; |
| 896 |
50098 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
50098 |
50098 |
|
| 897 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 898 |
|
| { |
| 899 |
|
| TraceFileReader * THIS; |
| 900 |
|
| HV * RETVAL; |
| 901 |
|
| |
| 902 |
50098 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
50098 |
0 |
50098 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
50098 |
0 |
50098 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
50098 |
0 |
50098 |
|
| 903 |
50098 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 904 |
|
| else{ |
| 905 |
0 |
| warn( "Devel::StatProfiler::Reader::get_custom_metadata() -- THIS is not a blessed SV reference" ); |
| 906 |
0 |
| XSRETURN_UNDEF; |
| 907 |
|
| } |
| 908 |
|
| ; |
| 909 |
|
| #line 349 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 910 |
|
| try { |
| 911 |
|
| RETVAL = THIS->get_custom_metadata(); |
| 912 |
|
| } |
| 913 |
|
| catch (std::exception& e) { |
| 914 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 915 |
|
| } |
| 916 |
|
| catch (...) { |
| 917 |
|
| croak("Caught C++ exception of unknown type"); |
| 918 |
|
| } |
| 919 |
|
| #line 920 "buildtmp/StatProfiler.c" |
| 920 |
|
| { |
| 921 |
|
| SV * RETVALSV; |
| 922 |
50098 |
| RETVALSV = newRV((SV*)RETVAL); |
| 923 |
50098 |
| RETVALSV = sv_2mortal(RETVALSV); |
| 924 |
50098 |
| ST(0) = RETVALSV; |
| 925 |
|
| } |
| 926 |
|
| } |
| 927 |
50098 |
| XSRETURN(1); |
| 928 |
|
| } |
| 929 |
|
| |
| 930 |
|
| |
| 931 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_source_code); /* prototype to pass -Wmissing-prototypes */ |
| 932 |
16002 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_source_code) |
| 933 |
|
| { |
| 934 |
16002 |
| dVAR; dXSARGS; |
| 935 |
16002 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
16002 |
16002 |
|
| 936 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 937 |
|
| { |
| 938 |
|
| TraceFileReader * THIS; |
| 939 |
|
| HV * RETVAL; |
| 940 |
|
| |
| 941 |
16002 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
16002 |
0 |
16002 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
16002 |
0 |
16002 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
16002 |
0 |
16002 |
|
| 942 |
16002 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 943 |
|
| else{ |
| 944 |
0 |
| warn( "Devel::StatProfiler::Reader::get_source_code() -- THIS is not a blessed SV reference" ); |
| 945 |
0 |
| XSRETURN_UNDEF; |
| 946 |
|
| } |
| 947 |
|
| ; |
| 948 |
|
| #line 363 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 949 |
|
| try { |
| 950 |
|
| RETVAL = THIS->get_source_code(); |
| 951 |
|
| } |
| 952 |
|
| catch (std::exception& e) { |
| 953 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 954 |
|
| } |
| 955 |
|
| catch (...) { |
| 956 |
|
| croak("Caught C++ exception of unknown type"); |
| 957 |
|
| } |
| 958 |
|
| #line 959 "buildtmp/StatProfiler.c" |
| 959 |
|
| { |
| 960 |
|
| SV * RETVALSV; |
| 961 |
16002 |
| RETVALSV = newRV((SV*)RETVAL); |
| 962 |
16002 |
| RETVALSV = sv_2mortal(RETVALSV); |
| 963 |
16002 |
| ST(0) = RETVALSV; |
| 964 |
|
| } |
| 965 |
|
| } |
| 966 |
16002 |
| XSRETURN(1); |
| 967 |
|
| } |
| 968 |
|
| |
| 969 |
|
| |
| 970 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_clear_custom_metadata); /* prototype to pass -Wmissing-prototypes */ |
| 971 |
9009 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_clear_custom_metadata) |
| 972 |
|
| { |
| 973 |
9009 |
| dVAR; dXSARGS; |
| 974 |
9009 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
9009 |
9009 |
|
| 975 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 976 |
|
| { |
| 977 |
|
| TraceFileReader * THIS; |
| 978 |
|
| |
| 979 |
9009 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
9009 |
0 |
9009 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
9009 |
0 |
9009 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
9009 |
0 |
9009 |
|
| 980 |
9009 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 981 |
|
| else{ |
| 982 |
0 |
| warn( "Devel::StatProfiler::Reader::clear_custom_metadata() -- THIS is not a blessed SV reference" ); |
| 983 |
0 |
| XSRETURN_UNDEF; |
| 984 |
|
| } |
| 985 |
|
| ; |
| 986 |
|
| #line 377 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 987 |
|
| try { |
| 988 |
|
| THIS->clear_custom_metadata(); |
| 989 |
|
| } |
| 990 |
|
| catch (std::exception& e) { |
| 991 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 992 |
|
| } |
| 993 |
|
| catch (...) { |
| 994 |
|
| croak("Caught C++ exception of unknown type"); |
| 995 |
|
| } |
| 996 |
|
| #line 997 "buildtmp/StatProfiler.c" |
| 997 |
|
| } |
| 998 |
9009 |
| XSRETURN_EMPTY; |
| 999 |
|
| } |
| 1000 |
|
| |
| 1001 |
|
| |
| 1002 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_delete_custom_metadata); /* prototype to pass -Wmissing-prototypes */ |
| 1003 |
708 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_delete_custom_metadata) |
| 1004 |
|
| { |
| 1005 |
708 |
| dVAR; dXSARGS; |
| 1006 |
708 |
▶ | if (items != 2) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 2) |
0 |
708 |
708 |
|
| 1007 |
0 |
| croak_xs_usage(cv, "THIS, keys"); |
| 1008 |
|
| { |
| 1009 |
|
| TraceFileReader * THIS; |
| 1010 |
|
| AV* keys; |
| 1011 |
|
| |
| 1012 |
708 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
708 |
0 |
708 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
708 |
0 |
708 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
708 |
0 |
708 |
|
| 1013 |
708 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 1014 |
|
| else{ |
| 1015 |
0 |
| warn( "Devel::StatProfiler::Reader::delete_custom_metadata() -- THIS is not a blessed SV reference" ); |
| 1016 |
0 |
| XSRETURN_UNDEF; |
| 1017 |
|
| } |
| 1018 |
|
| ; |
| 1019 |
|
| |
| 1020 |
|
| STMT_START { |
| 1021 |
708 |
| SV* const xsub_tmp_sv = ST(1); |
| 1022 |
708 |
| SvGETMAGIC(xsub_tmp_sv); |
| 1023 |
708 |
▶ | if (SvROK(xsub_tmp_sv) && SvTYPE(SvRV(xsub_tmp_sv)) == SVt_PVAV){ |
Branch: 2 branches
| Branch | True | False | Total |
| if (SvROK(xsub_tmp_sv) && SvTYPE(SvRV(xsub_tmp_sv)) == SVt_PVAV){ |
708 |
0 |
708 |
| if (SvROK(xsub_tmp_sv) && SvTYPE(SvRV(xsub_tmp_sv)) == SVt_PVAV){ |
708 |
0 |
708 |
|
| 1024 |
708 |
▶ | keys = (AV*)SvRV(xsub_tmp_sv); |
Branch: 1 branch
| Branch | True | False | Total |
| keys = (AV*)SvRV(xsub_tmp_sv); |
708 |
0 |
708 |
|
| 1025 |
|
| } |
| 1026 |
|
| else{ |
| 1027 |
0 |
| Perl_croak_nocontext("%s: %s is not an ARRAY reference", |
| 1028 |
|
| "Devel::StatProfiler::Reader::delete_custom_metadata", |
| 1029 |
|
| "keys"); |
| 1030 |
|
| } |
| 1031 |
|
| } STMT_END |
| 1032 |
|
| ; |
| 1033 |
|
| #line 390 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 1034 |
|
| try { |
| 1035 |
|
| THIS->delete_custom_metadata( keys ); |
| 1036 |
|
| } |
| 1037 |
|
| catch (std::exception& e) { |
| 1038 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 1039 |
|
| } |
| 1040 |
|
| catch (...) { |
| 1041 |
|
| croak("Caught C++ exception of unknown type"); |
| 1042 |
|
| } |
| 1043 |
|
| #line 1044 "buildtmp/StatProfiler.c" |
| 1044 |
|
| } |
| 1045 |
708 |
| XSRETURN_EMPTY; |
| 1046 |
|
| } |
| 1047 |
|
| |
| 1048 |
|
| |
| 1049 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_active_sections); /* prototype to pass -Wmissing-prototypes */ |
| 1050 |
32846 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_active_sections) |
| 1051 |
|
| { |
| 1052 |
32846 |
| dVAR; dXSARGS; |
| 1053 |
32846 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
32846 |
32846 |
|
| 1054 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1055 |
|
| { |
| 1056 |
|
| TraceFileReader * THIS; |
| 1057 |
|
| HV * RETVAL; |
| 1058 |
|
| |
| 1059 |
32846 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
32846 |
0 |
32846 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
32846 |
0 |
32846 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
32846 |
0 |
32846 |
|
| 1060 |
32846 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 1061 |
|
| else{ |
| 1062 |
0 |
| warn( "Devel::StatProfiler::Reader::get_active_sections() -- THIS is not a blessed SV reference" ); |
| 1063 |
0 |
| XSRETURN_UNDEF; |
| 1064 |
|
| } |
| 1065 |
|
| ; |
| 1066 |
|
| #line 403 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 1067 |
|
| try { |
| 1068 |
|
| RETVAL = THIS->get_active_sections(); |
| 1069 |
|
| } |
| 1070 |
|
| catch (std::exception& e) { |
| 1071 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 1072 |
|
| } |
| 1073 |
|
| catch (...) { |
| 1074 |
|
| croak("Caught C++ exception of unknown type"); |
| 1075 |
|
| } |
| 1076 |
|
| #line 1077 "buildtmp/StatProfiler.c" |
| 1077 |
|
| { |
| 1078 |
|
| SV * RETVALSV; |
| 1079 |
32846 |
| RETVALSV = newRV((SV*)RETVAL); |
| 1080 |
32846 |
| RETVALSV = sv_2mortal(RETVALSV); |
| 1081 |
32846 |
| ST(0) = RETVALSV; |
| 1082 |
|
| } |
| 1083 |
|
| } |
| 1084 |
32846 |
| XSRETURN(1); |
| 1085 |
|
| } |
| 1086 |
|
| |
| 1087 |
|
| |
| 1088 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_is_file_ended); /* prototype to pass -Wmissing-prototypes */ |
| 1089 |
252 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_is_file_ended) |
| 1090 |
|
| { |
| 1091 |
252 |
| dVAR; dXSARGS; |
| 1092 |
252 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
252 |
252 |
|
| 1093 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1094 |
|
| { |
| 1095 |
|
| TraceFileReader * THIS; |
| 1096 |
|
| bool RETVAL; |
| 1097 |
|
| |
| 1098 |
252 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
252 |
0 |
252 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
252 |
0 |
252 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
252 |
0 |
252 |
|
| 1099 |
252 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 1100 |
|
| else{ |
| 1101 |
0 |
| warn( "Devel::StatProfiler::Reader::is_file_ended() -- THIS is not a blessed SV reference" ); |
| 1102 |
0 |
| XSRETURN_UNDEF; |
| 1103 |
|
| } |
| 1104 |
|
| ; |
| 1105 |
|
| #line 417 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 1106 |
|
| try { |
| 1107 |
|
| RETVAL = THIS->is_file_ended(); |
| 1108 |
|
| } |
| 1109 |
|
| catch (std::exception& e) { |
| 1110 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 1111 |
|
| } |
| 1112 |
|
| catch (...) { |
| 1113 |
|
| croak("Caught C++ exception of unknown type"); |
| 1114 |
|
| } |
| 1115 |
|
| #line 1116 "buildtmp/StatProfiler.c" |
| 1116 |
252 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
252 |
0 |
252 |
|
| 1117 |
|
| } |
| 1118 |
252 |
| XSRETURN(1); |
| 1119 |
|
| } |
| 1120 |
|
| |
| 1121 |
|
| |
| 1122 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_is_stream_ended); /* prototype to pass -Wmissing-prototypes */ |
| 1123 |
8494 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_is_stream_ended) |
| 1124 |
|
| { |
| 1125 |
8494 |
| dVAR; dXSARGS; |
| 1126 |
8494 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
8494 |
8494 |
|
| 1127 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1128 |
|
| { |
| 1129 |
|
| TraceFileReader * THIS; |
| 1130 |
|
| bool RETVAL; |
| 1131 |
|
| |
| 1132 |
8494 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
8494 |
0 |
8494 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
8494 |
0 |
8494 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
8494 |
0 |
8494 |
|
| 1133 |
8494 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 1134 |
|
| else{ |
| 1135 |
0 |
| warn( "Devel::StatProfiler::Reader::is_stream_ended() -- THIS is not a blessed SV reference" ); |
| 1136 |
0 |
| XSRETURN_UNDEF; |
| 1137 |
|
| } |
| 1138 |
|
| ; |
| 1139 |
|
| #line 431 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 1140 |
|
| try { |
| 1141 |
|
| RETVAL = THIS->is_stream_ended(); |
| 1142 |
|
| } |
| 1143 |
|
| catch (std::exception& e) { |
| 1144 |
|
| croak("Caught C++ exception of type or derived from 'std::exception': %s", e.what()); |
| 1145 |
|
| } |
| 1146 |
|
| catch (...) { |
| 1147 |
|
| croak("Caught C++ exception of unknown type"); |
| 1148 |
|
| } |
| 1149 |
|
| #line 1150 "buildtmp/StatProfiler.c" |
| 1150 |
8494 |
▶ | ST(0) = boolSV(RETVAL); |
Branch: 1 branch
| Branch | True | False | Total |
| ST(0) = boolSV(RETVAL); |
14 |
8480 |
8494 |
|
| 1151 |
|
| } |
| 1152 |
8494 |
| XSRETURN(1); |
| 1153 |
|
| } |
| 1154 |
|
| |
| 1155 |
|
| |
| 1156 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_source_perl_version); /* prototype to pass -Wmissing-prototypes */ |
| 1157 |
9998 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_source_perl_version) |
| 1158 |
|
| { |
| 1159 |
9998 |
| dVAR; dXSARGS; |
| 1160 |
9998 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
9998 |
9998 |
|
| 1161 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1162 |
|
| { |
| 1163 |
|
| TraceFileReader * THIS; |
| 1164 |
|
| SV * RETVAL; |
| 1165 |
|
| |
| 1166 |
9998 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
9998 |
0 |
9998 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
9998 |
0 |
9998 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
9998 |
0 |
9998 |
|
| 1167 |
9998 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 1168 |
|
| else{ |
| 1169 |
0 |
| warn( "Devel::StatProfiler::Reader::get_source_perl_version() -- THIS is not a blessed SV reference" ); |
| 1170 |
0 |
| XSRETURN_UNDEF; |
| 1171 |
|
| } |
| 1172 |
|
| ; |
| 1173 |
|
| #line 445 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 1174 |
|
| const PerlVersion_t &version = THIS->get_source_perl_version(); |
| 1175 |
|
| RETVAL = newSVpvf("%lu.%lu.%lu", (unsigned long)version.revision, |
| 1176 |
|
| (unsigned long)version.version, |
| 1177 |
|
| (unsigned long)version.subversion); |
| 1178 |
|
| #line 1179 "buildtmp/StatProfiler.c" |
| 1179 |
9998 |
| RETVAL = sv_2mortal(RETVAL); |
| 1180 |
9998 |
| ST(0) = RETVAL; |
| 1181 |
|
| } |
| 1182 |
9998 |
| XSRETURN(1); |
| 1183 |
|
| } |
| 1184 |
|
| |
| 1185 |
|
| |
| 1186 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_genealogy_info); /* prototype to pass -Wmissing-prototypes */ |
| 1187 |
16500 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_get_genealogy_info) |
| 1188 |
|
| { |
| 1189 |
16500 |
| dVAR; dXSARGS; |
| 1190 |
16500 |
▶ | if (items != 1) |
Branch: 1 branch
| Branch | True | False | Total |
| if (items != 1) |
0 |
16500 |
16500 |
|
| 1191 |
0 |
| croak_xs_usage(cv, "THIS"); |
| 1192 |
|
| { |
| 1193 |
|
| TraceFileReader * THIS; |
| 1194 |
|
| SV * RETVAL; |
| 1195 |
|
| |
| 1196 |
16500 |
▶ | if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
Branch: 3 branches
| Branch | True | False | Total |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
16500 |
0 |
16500 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
16500 |
0 |
16500 |
| if( sv_isobject(ST(0)) && (SvTYPE(SvRV(ST(0))) == SVt_PVMG) ) |
16500 |
0 |
16500 |
|
| 1197 |
16500 |
| THIS = (TraceFileReader *)SvIV((SV*)SvRV( ST(0) )); |
| 1198 |
|
| else{ |
| 1199 |
0 |
| warn( "Devel::StatProfiler::Reader::get_genealogy_info() -- THIS is not a blessed SV reference" ); |
| 1200 |
0 |
| XSRETURN_UNDEF; |
| 1201 |
|
| } |
| 1202 |
|
| ; |
| 1203 |
|
| #line 454 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 1204 |
|
| const Genealogy_t &genealogy_info = THIS->get_genealogy_info(); |
| 1205 |
|
| AV *res = newAV(); |
| 1206 |
|
| av_push(res, newSVpvn((const char *) genealogy_info.id, sizeof(genealogy_info.id) - 1)); |
| 1207 |
|
| av_push(res, newSVuv(genealogy_info.ordinal)); |
| 1208 |
|
| av_push(res, newSVpvn((const char *) genealogy_info.parent_id, sizeof(genealogy_info.parent_id) - 1)); |
| 1209 |
|
| av_push(res, newSVuv(genealogy_info.parent_ordinal)); |
| 1210 |
|
| RETVAL = newRV_noinc((SV *)res); |
| 1211 |
|
| #line 1212 "buildtmp/StatProfiler.c" |
| 1212 |
16500 |
| RETVAL = sv_2mortal(RETVAL); |
| 1213 |
16500 |
| ST(0) = RETVAL; |
| 1214 |
|
| } |
| 1215 |
16500 |
| XSRETURN(1); |
| 1216 |
|
| } |
| 1217 |
|
| |
| 1218 |
|
| |
| 1219 |
|
| XS_EUPXS(XS_Devel__StatProfiler__Reader_CLONE); /* prototype to pass -Wmissing-prototypes */ |
| 1220 |
0 |
| XS_EUPXS(XS_Devel__StatProfiler__Reader_CLONE) |
| 1221 |
|
| { |
| 1222 |
0 |
| dVAR; dXSARGS; |
| 1223 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 1224 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 1225 |
|
| { |
| 1226 |
|
| #line 471 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 1227 |
|
| clone_runloop(aTHX); |
| 1228 |
|
| #line 1229 "buildtmp/StatProfiler.c" |
| 1229 |
|
| } |
| 1230 |
0 |
| XSRETURN_EMPTY; |
| 1231 |
|
| } |
| 1232 |
|
| |
| 1233 |
|
| |
| 1234 |
|
| /* INCLUDE: Returning to 'main.xs' from '/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t "/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt" "/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp"' */ |
| 1235 |
|
| |
| 1236 |
|
| #ifdef __cplusplus |
| 1237 |
|
| extern "C" { |
| 1238 |
|
| #endif |
| 1239 |
|
| XS_EXTERNAL(boot_Devel__StatProfiler); /* prototype to pass -Wmissing-prototypes */ |
| 1240 |
68 |
| XS_EXTERNAL(boot_Devel__StatProfiler) |
| 1241 |
|
| { |
| 1242 |
|
| #if PERL_VERSION_LE(5, 21, 5) |
| 1243 |
|
| dVAR; dXSARGS; |
| 1244 |
|
| #else |
| 1245 |
68 |
| dVAR; dXSBOOTARGSXSAPIVERCHK; |
| 1246 |
|
| #endif |
| 1247 |
|
| #if PERL_VERSION_LE(5, 8, 999) /* PERL_VERSION_LT is 5.33+ */ |
| 1248 |
|
| char* file = __FILE__; |
| 1249 |
|
| #else |
| 1250 |
68 |
| const char* file = __FILE__; |
| 1251 |
|
| #endif |
| 1252 |
|
| |
| 1253 |
|
| PERL_UNUSED_VAR(file); |
| 1254 |
|
| |
| 1255 |
|
| PERL_UNUSED_VAR(cv); /* -W */ |
| 1256 |
|
| PERL_UNUSED_VAR(items); /* -W */ |
| 1257 |
|
| #if PERL_VERSION_LE(5, 21, 5) |
| 1258 |
|
| XS_VERSION_BOOTCHECK; |
| 1259 |
|
| # ifdef XS_APIVERSION_BOOTCHECK |
| 1260 |
|
| XS_APIVERSION_BOOTCHECK; |
| 1261 |
|
| # endif |
| 1262 |
|
| #endif |
| 1263 |
|
| |
| 1264 |
68 |
| newXS_deffile("Devel::StatProfiler::Test::TiedHash::FETCH", XS_Devel__StatProfiler__Test__TiedHash_FETCH); |
| 1265 |
68 |
| newXS_deffile("Devel::StatProfiler::_install", XS_Devel__StatProfiler__install); |
| 1266 |
68 |
| newXS_deffile("Devel::StatProfiler::set_enabled", XS_Devel__StatProfiler_set_enabled); |
| 1267 |
68 |
| newXS_deffile("Devel::StatProfiler::set_output_file", XS_Devel__StatProfiler_set_output_file); |
| 1268 |
68 |
| newXS_deffile("Devel::StatProfiler::set_sampling_interval", XS_Devel__StatProfiler_set_sampling_interval); |
| 1269 |
68 |
| newXS_deffile("Devel::StatProfiler::set_stack_collection_depth", XS_Devel__StatProfiler_set_stack_collection_depth); |
| 1270 |
68 |
| newXS_deffile("Devel::StatProfiler::set_max_output_file_size", XS_Devel__StatProfiler_set_max_output_file_size); |
| 1271 |
68 |
| newXS_deffile("Devel::StatProfiler::set_save_source", XS_Devel__StatProfiler_set_save_source); |
| 1272 |
68 |
| newXS_deffile("Devel::StatProfiler::set_global_metadata", XS_Devel__StatProfiler_set_global_metadata); |
| 1273 |
68 |
| newXS_deffile("Devel::StatProfiler::write_custom_metadata", XS_Devel__StatProfiler_write_custom_metadata); |
| 1274 |
68 |
| newXS_deffile("Devel::StatProfiler::start_section", XS_Devel__StatProfiler_start_section); |
| 1275 |
68 |
| newXS_deffile("Devel::StatProfiler::end_section", XS_Devel__StatProfiler_end_section); |
| 1276 |
68 |
| newXS_deffile("Devel::StatProfiler::get_precision", XS_Devel__StatProfiler_get_precision); |
| 1277 |
68 |
| newXS_deffile("Devel::StatProfiler::is_running", XS_Devel__StatProfiler_is_running); |
| 1278 |
68 |
| newXS_deffile("Devel::StatProfiler::Test::test_enable", XS_Devel__StatProfiler__Test_test_enable); |
| 1279 |
68 |
| newXS_deffile("Devel::StatProfiler::Test::test_force_sample", XS_Devel__StatProfiler__Test_test_force_sample); |
| 1280 |
68 |
| newXS_deffile("Devel::StatProfiler::Test::test_hires_usleep", XS_Devel__StatProfiler__Test_test_hires_usleep); |
| 1281 |
68 |
| newXS_deffile("Devel::StatProfiler::Test::test_hires_sleep", XS_Devel__StatProfiler__Test_test_hires_sleep); |
| 1282 |
68 |
| newXS_deffile("Devel::StatProfiler::Test::test_hires_time", XS_Devel__StatProfiler__Test_test_hires_time); |
| 1283 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::new", XS_Devel__StatProfiler__Reader_new); |
| 1284 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::DESTROY", XS_Devel__StatProfiler__Reader_DESTROY); |
| 1285 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::read_trace", XS_Devel__StatProfiler__Reader_read_trace); |
| 1286 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::get_format_version", XS_Devel__StatProfiler__Reader_get_format_version); |
| 1287 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::get_source_tick_duration", XS_Devel__StatProfiler__Reader_get_source_tick_duration); |
| 1288 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::get_source_stack_sample_depth", XS_Devel__StatProfiler__Reader_get_source_stack_sample_depth); |
| 1289 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::get_custom_metadata", XS_Devel__StatProfiler__Reader_get_custom_metadata); |
| 1290 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::get_source_code", XS_Devel__StatProfiler__Reader_get_source_code); |
| 1291 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::clear_custom_metadata", XS_Devel__StatProfiler__Reader_clear_custom_metadata); |
| 1292 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::delete_custom_metadata", XS_Devel__StatProfiler__Reader_delete_custom_metadata); |
| 1293 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::get_active_sections", XS_Devel__StatProfiler__Reader_get_active_sections); |
| 1294 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::is_file_ended", XS_Devel__StatProfiler__Reader_is_file_ended); |
| 1295 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::is_stream_ended", XS_Devel__StatProfiler__Reader_is_stream_ended); |
| 1296 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::get_source_perl_version", XS_Devel__StatProfiler__Reader_get_source_perl_version); |
| 1297 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::get_genealogy_info", XS_Devel__StatProfiler__Reader_get_genealogy_info); |
| 1298 |
68 |
| newXS_deffile("Devel::StatProfiler::Reader::CLONE", XS_Devel__StatProfiler__Reader_CLONE); |
| 1299 |
|
| |
| 1300 |
|
| /* Initialisation Section */ |
| 1301 |
|
| |
| 1302 |
|
| #line 466 "/usr/local/bin/perl -MExtUtils::XSpp::Cmd -e xspp -- -t \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xspt\" \"/home/cpancover/.cpan/build/Devel-StatProfiler-0.57-0/xsp/main.xsp\"" |
| 1303 |
|
| init_runloop(aTHX); |
| 1304 |
|
| |
| 1305 |
|
| #line 1306 "buildtmp/StatProfiler.c" |
| 1306 |
|
| |
| 1307 |
|
| /* End of Initialisation Section */ |
| 1308 |
|
| |
| 1309 |
|
| #if PERL_VERSION_LE(5, 21, 5) |
| 1310 |
|
| # if PERL_VERSION_GE(5, 9, 0) |
| 1311 |
|
| if (PL_unitcheckav) |
| 1312 |
|
| call_list(PL_scopestack_ix, PL_unitcheckav); |
| 1313 |
|
| # endif |
| 1314 |
|
| XSRETURN_YES; |
| 1315 |
|
| #else |
| 1316 |
68 |
| Perl_xs_boot_epilog(aTHX_ ax); |
| 1317 |
|
| #endif |
| 1318 |
68 |
| } |
| 1319 |
|
| |
| 1320 |
|
| #ifdef __cplusplus |
| 1321 |
|
| } |
| 1322 |
|
| #endif |