NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Using the profiler without phpED


Joined: 08 Jun 2007
Posts: 2
Reply with quote
I'm trying to work out how to use the profiler with the command line linux client, but cannot find any documentation on it. Can somebody point me to where how to do this is described?

I've managed to figure out a small amount, and have got some output from the profiler into my resulting page. The output looks like this:

Code:
Array
(
    [mod_no] => Array
        (
            [0] => 1
            [1] => 1
            [2] => 1
            [3] => 1
        )

    [line_no] => Array
        (
            [0] => 5
            [1] => 6
            [2] => 7
            [3] => 8
        )

    [hit_count] => Array
        (
            [0] => 1
            [1] => 1
            [2] => 1
            [3] => 1
        )

    [tm_max] => Array
        (
            [0] => 0.000184
            [1] => 1.7E-05
            [2] => 3.2E-05
            [3] => 8E-06
        )

    [tm_min] => Array
        (
            [0] => 0.000184
            [1] => 1.7E-05
            [2] => 3.2E-05
            [3] => 8E-06
        )

    [tm_sum] => Array
        (
            [0] => 0.000184
            [1] => 1.7E-05
            [2] => 3.2E-05
            [3] => 8E-06
        )
)


Unfortunately I have no idea what this means. And there doesn't seem to be anywhere near enough information here for it to be a line-by-line profile of my script, which has over 2,000 lines of code executed to produce the page that this was extracted from.

Any help would be appreciated.
View user's profileFind all posts by juleshSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
according to the info you posted, only lines 5 through 8 were executed on the module associated with module#1. Those lines were executed just one time.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 08 Jun 2007
Posts: 2
Reply with quote
dmitri wrote:
according to the info you posted, only lines 5 through 8 were executed on the module associated with module#1. Those lines were executed just one time.


I see. How do I get information about other modules? The top-level script in question merely includes another file, then runs a function located in it: it was the execution of this function I wanted to profile.
View user's profileFind all posts by juleshSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
to see other modules you may want to inquire for their profile and you can do it the same way as you've done for the file which profile info you posted.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Using the profiler without phpED
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic