Open antorome opened 10 years ago
Did you follow the install instructions?
Hi, in fact I installed the original repository. Anyhow, I cloned now your fork and followed your instructions and still the same. I am pretty sure It is something about the config. I populated the databse with the sample sql.
xhprof output is /tmp and nothing is written in the database.
so, how xhprof.io reads the data?
I have this in php.ini
[Xhprof]
extension=xhprof.so
xhprof.output dir=/tmp
; Automatically add files before PHP document.
; http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
; This can also be done on a per-directory basis (.htaccess) or per-site (httpd.conf)
; http://www.electrictoolbox.com/php-automatically-append-prepend/
auto_prepend_file = /Users/antonio/Sites/utilidades/xhprof.io/inc/prepend.php
this in config.inc.pho
return array(
'url_base' => 'http://localhost/~antonio/utilidades/xhprof.io/',
'url_static' => null, // When undefined, it defaults to $config['url_base'] . 'public/'. This should be absolute URL.
'pdo' => new PDO('mysql:dbname=xhpio;host=localhost;charset=utf8', 'root', ''),
'tmp_table_engine' => 'Memory', // MySQL Table Engine used for temporary tables
'cache_expiration' => '60', // How many seconds a browser allowed to cache profilling results
'profiler_enabled' => true // Global switch to disable the profiler by default
);
And using this plugin http://wordpress.org/plugins/wp-xhprof-profiler/ And correctly seeinf xhprof results ans callgraph.
I think there is a missing point where data is stored in xhprof.io database.
thanks
xhprof.io stores the profile into the db using the prepend file.
Is your app deployed on the same host as xhprof.io?
For sure, it is in the same php.ini
I have in /etc/hosts 127.0.0.1 cdb
I have removed it just in case
Now I can access my site in http://localhost/~antonio/cdb/
and can access the (empty) report in http://localhost/~antonio/utilidades/xhprof.io/?xhprof[template]=hosts
But nothing is being saved in the database. Are the settings in my previous message correct? If not I have no idea what is the problem.
Thanks
Did you test the pdo settings are fine? Permissions etc. Any errors in the php error log?
did you made sure that the prepend.php
gets properly included (do some echo and exit tests)?
if so, start debugging the xhprof_init()
method and have a look if it somehow returns false on your machine.
I'm not sure how strictly PHP reads its php.ini file, but auto_prepend_file and auto_append_file are core directives and therefore you possibly don't want them under the section for [Xhprof].
Hello,
I have installed it, created database and populated it. I am accessing it in my computer in a given URL but I see no data at all.
I have configured the output of xhprof to /tmp folder.
I can access the files both with data and standard callgraph but dont know how to do it with xhprof.io
Is there anything missing??
Thanks a lot and regards