php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #16565 Support for profiling/function tracking
Submitted: 2002-04-12 06:58 UTC Modified: 2002-06-30 04:28 UTC
From: marv at cyberia dot net dot lb Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.1.2 OS: Any
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: marv at cyberia dot net dot lb
New email:
PHP Version: OS:

 

 [2002-04-12 06:58 UTC] marv at cyberia dot net dot lb
In complicated scripts, its a big effort tracking function calls to understand just whats going on. When you're trying to code for effeciency, you need detailed function calling and timing information. The ticks thing is a step forward, but it doesnt have any context information.

I'm requesting two things. The first is a ticks variant on the function level. You can register a function that gets called on every function call (and maybe another on every function exit). Its important that the callback is supplied with at least the function's name, so it can recognize the context. Supplieng it with arguments would be a plus.

The second thing would be exposing the function call stack, so you could see the caller of the current function, and its caller, all the way to the top. Being able to retrieve the time the function was called (in msecs) would be very good, but could be expensive.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-12 07:00 UTC] mfischer@php.net
There are quite a couple of debuggers/profilers out there. 
 [2002-06-29 17:03 UTC] henno dot taht at japauto dot ee
The second thing is quite useful if you don't want to go through all the trouble setting up a working debugger.
 [2002-06-30 04:28 UTC] mfischer@php.net
ZE2 has support for this.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Feb 16 13:00:01 2026 UTC