pike.git / lib / modules / Debug.pmod / Profiling.pmod

version» Context lines:

pike.git/lib/modules/Debug.pmod/Profiling.pmod:1:   /* -*- Mode: pike; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */   #pike __REAL_VERSION__ + #require constant(get_profiling_info)    - #if constant(get_profiling_info) +    private multiset(program) object_programs()   {    multiset x = (<>);    int orig_enabled = Pike.gc_parameters()->enabled;    Pike.gc_parameters( (["enabled":0]) );    program prog = this_program;       void add_traverse( program start, function traverse )    {    while(1)
pike.git/lib/modules/Debug.pmod/Profiling.pmod:320: Inside #if constant(get_profiling_info)
   });    werror("Most CPU-consuming functions "    "sorted by total (self + child) times.\n");    output_result( reverse(rows)[..num||99], 7 );       werror("\n"    "Most CPU-consuming functions sorted by self-time.\n");    sort( (array(float))column(rows,1+(__MINOR__==6?0:1)), rows );    output_result( reverse(rows)[..num||99], 6 );   } - #else - constant this_program_does_not_exist = 1; - #endif +