Closed Vidzz closed 9 years ago
Maybe that is how information is stored. I never looked at the database, since UI shows me all I need to know.
Initially there was only one record for a url visited. Now, there are two records. The second record doesn't store the metrics. (i.e. 0). Even in UI, got the metric value as 0
Eg:
Last 25 Runs
Timestamp Cpu Wall Time Peak Memory Usage
Aug 07 11:31:13
53e3162c5b75e 0 0 0
Aug 07 11:31:13
53e3162c5801b 635903 3249014 10308648
All records in mine details
table contain non-zero number pmu
column.
The application now uses register shutdown function to set up the the recording of data: https://github.com/preinheimer/xhprof/blob/master/external/header.php#L134
You'll get two copies of data if you're also manually including footer.php.
I'm including only header by the way. Then I understand why all works fine in my case.
How is it possible to include only the header? The footer contains the xhprof_disable to stop the profiling right? Is it possible to stop profiling without using footer.php? Also what are the changes to be made f=to achieve that?
@aik099 - I couldn't get you. You mean to say you used header.php in register_shutdown_function? Or the function wasn't called?
@preinheimer said, that header.php
now uses register_shutdown_function
to call footer.php
automatically. Maybe you're unaware what register_shutdown_function
does, I don't know.
@Vidzz header.php includes footer.php automatically now, you don't need to include it yourself.
@preinheimer @aik099 Thanks for the help. I actually included both.
I tried to use this package to profile PHP application. When I tried to open it read the database of what was recorded, there were two entries for the same timestamp. The first record had the pmu, wt, and cpu as what was used, but the second entry had all the values of those as 0.