{"action":"closed","issue":{"url":"https://api.github.com/repos/longxinH/xhprof/issues/12","repository_url":"https://api.github.com/repos/longxinH/xhprof","labels_url":"https://api.github.com/repos/longxinH/xhprof/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/longxinH/xhprof/issues/12/comments","events_url":"https://api.github.com/repos/longxinH/xhprof/issues/12/events","html_url":"https://github.com/longxinH/xhprof/issues/12","id":346026358,"node_id":"MDU6SXNzdWUzNDYwMjYzNTg=","number":12,"title":"ERR: Class 'XHProfRuns_Default' not found","user":{"login":"amorZhu","id":17883773,"node_id":"MDQ6VXNlcjE3ODgzNzcz","avatar_url":"https://avatars1.githubusercontent.com/u/17883773?v=4","gravatar_id":"","url":"https://api.github.com/users/amorZhu","html_url":"https://github.com/amorZhu","followers_url":"https://api.github.com/users/amorZhu/followers","following_url":"https://api.github.com/users/amorZhu/following{/other_user}","gists_url":"https://api.github.com/users/amorZhu/gists{/gist_id}","starred_url":"https://api.github.com/users/amorZhu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amorZhu/subscriptions","organizations_url":"https://api.github.com/users/amorZhu/orgs","repos_url":"https://api.github.com/users/amorZhu/repos","events_url":"https://api.github.com/users/amorZhu/events{/privacy}","received_events_url":"https://api.github.com/users/amorZhu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-31T04:00:08Z","updated_at":"2018-07-31T05:59:55Z","closed_at":"2018-07-31T05:59:55Z","author_association":"NONE","body":"```php\r\nxhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY);\r\n// 应用入口文件\r\n\r\n// 检测PHP环境\r\nif(version_compare(PHP_VERSION,'5.3.0','<'))  die('require PHP > 5.3.0 !');\r\n\r\n// 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false\r\ndefine('APP_DEBUG',true);\r\n\r\n// 定义应用目录\r\ndefine('APP_PATH','./Application/');\r\n\r\n// 引入ThinkPHP入口文件\r\nrequire './ThinkPHP/ThinkPHP.php';\r\n\r\n// 亲^_^ 后面不需要任何代码了 就是如此简单\r\n\r\n\r\n$xhprof_data = xhprof_disable();\r\n$XHPROF_ROOT = \"xhprof_lib/\";\r\ninclude_once $XHPROF_ROOT . \"xhprof_lib.php\";\r\ninclude_once $XHPROF_ROOT . \"xhprof_runs.php\";\r\n\r\n$xhprof_runs = new XHProfRuns_Default();\r\n$run_id = $xhprof_runs->save_run($xhprof_data, \"xhprof_testing\");\r\n\r\necho \"http://amor.onlinedown_m.com/xhprof_html/index.php?run={$run_id}&source=xhprof_testing\\n\";\r\n\r\n```\r\n```shell\r\n[root@localhost amor.onlinedown_m.com]# php -m\r\n[PHP Modules]\r\nbcmath\r\nCore\r\nctype\r\ncurl\r\ndate\r\ndom\r\nfilter\r\nftp\r\ngd\r\ngettext\r\nhash\r\niconv\r\nintl\r\njson\r\nlibxml\r\nmbstring\r\nmemcache\r\nmysqli\r\nmysqlnd\r\nopenssl\r\npcntl\r\npcre\r\nPDO\r\npdo_mysql\r\npdo_sqlite\r\nPhar\r\nposix\r\nredis\r\nReflection\r\nsession\r\nshmop\r\nSimpleXML\r\nsoap\r\nsockets\r\nSPL\r\nsqlite3\r\nstandard\r\nsysvsem\r\ntokenizer\r\nxhprof\r\nxml\r\nxmlreader\r\nxmlrpc\r\nxmlwriter\r\nxsl\r\nzip\r\nzlib\r\n\r\n[Zend Modules]\r\n\r\n\r\n\r\n```\r\n"}}
{"actor":{"display_login":"amorZhu"}}