Skip to content

Commit

Permalink
Fixed issue #1404: Execution time is calculated incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
derickr committed Apr 17, 2017
1 parent f9e992f commit e8bceda
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions tests/bug00631.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,3 @@ cfl=(1)
cfn=(2)
calls=1 0 0
%d %d

fl=(1)
fn=(4) php::xdebug_get_profiler_filename
%d %d
1 change: 1 addition & 0 deletions xdebug_profiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ void xdebug_profiler_function_end(function_stack_entry *fse TSRMLS_DC)

if (fse->function.function && strcmp(fse->function.function, "{main}") == 0) {
fprintf(XG(profile_file), "\nsummary: %lu\n\n", (unsigned long) (fse->profile.time * 1000000));
XG(profiler_enabled) = 0;
}
fflush(XG(profile_file));

Expand Down

0 comments on commit e8bceda

Please sign in to comment.