Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.2.9

Bug #12893 Profiler auto mode non-functional in version 1.2.7
Submitted: 2008-01-13 04:59 UTC
From: triffidz Assigned:
Status: Wont fix Package: Benchmark (version 1.2.7)
PHP Version: 5.2.1 OS: Fedora Linux
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 4 - 3 = ?

 
 [2008-01-13 04:59 UTC] triffidz (Matt Zandstra)
Description: ------------ Looks like the Profiler destructor which seems to have been renamed from _Benchmark_Profiler() to close() is no longer called. The script, which worked fine in 1.2.6 now no longer generates profile output Test script: --------------- require_once "Benchmark/Profiler.php"; class MyQuiz { static function run() { global $profiler; $profiler->enterSection( __METHOD__ ); // simulate lots of application type method calls sleep( 5 ); $profiler->leaveSection( __METHOD__ ); } } $profiler = new Benchmark_Profiler( true ); MyQuiz::run(); Expected result: ---------------- $ php listing02.php ------------------------------------------------------------------------------------- Section Total Ex Time Netto Ex Time #Calls Percentage ------------------------------------------------------------------------------------- MyQuiz::run 5.0006840229034 5.0006840229034 1 99.99% Global 5.0010659694672 0.0003819465637207 1 100.00%

Comments

 [2008-05-05 12:15 UTC] doconnor (Daniel O'Connor)
Thanks for the bug report - broken with 1.2.7/5.2.6
 [2008-05-05 12:25 UTC] doconnor (Daniel O'Connor)
This is regression from bug #8748 - it might be a WONTFIX
 [2011-12-11 17:58 UTC] doconnor (Daniel O'Connor)
-Status: Verified +Status: Wont fix
I'd recommend registering a shutdown function, and calling close()