{"id":19773939,"url":"https://github.com/badoo/xhprof_console","last_synced_at":"2025-09-14T04:05:50.098Z","repository":{"id":66759244,"uuid":"128375624","full_name":"badoo/xhprof_console","owner":"badoo","description":"A console tool for grabbing profiles from XHProf database and collecting aggregates from them","archived":false,"fork":false,"pushed_at":"2018-04-06T16:05:18.000Z","size":5,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-07-04T08:41:53.068Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/badoo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-06T09:32:42.000Z","updated_at":"2024-02-10T00:09:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"f3ce03c3-3245-4e06-bfec-8440cce3b121","html_url":"https://github.com/badoo/xhprof_console","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/badoo/xhprof_console","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2Fxhprof_console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2Fxhprof_console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2Fxhprof_console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2Fxhprof_console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/badoo","download_url":"https://codeload.github.com/badoo/xhprof_console/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/badoo%2Fxhprof_console/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275058562,"owners_count":25398174,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T05:11:34.263Z","updated_at":"2025-09-14T04:05:50.078Z","avatar_url":"https://github.com/badoo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xhprof_console\nA console tool for grabbing profiles from XHProf database and collecting aggregates from them\n\n## Requirements:\n* PHP with XHProf installed and set up.\n* This script works directly with xhprof database, profiles should be taken as usual.\n\n## Why to use it instead of native XHProf interface:\nIt allows to collect and see stats for several XHProf profiles. Stats includes:\n * average method exec time\n * 90 percentile of method exec time\n * min, max of the exec time\n\n## How to use\nFirst run xhprof_console.php with no arguments. I'll give you a config format. Copy it to config.php\n\nThen fill the config with mysql settings and also change the SQL to select desired profiles.\n\nRun:\n    php xhprof_console.php config.php\n\nYou'll see an error if something wrong. If not - the root method stats and a command prompt.\n\n## Stats format\nThere are three sections:\n* Self Stat - the stats of current method\n* Children - the stats of method which are called by current\n* Parents - the stats of method which call current method\n\nIn each sections table columns are:\n* \\# - id of method which is used for navigation in the prompt\n* AVG_CT - average calls count of that method between all the collected profiles\n* min_ct - minimum calls count in all the profiles (0 is not counted, so the minimum is 1)\n* max_ct - maximum calls count in all the profiles\n* AVG_WT - average wall time (total execution time of the method) between all the collected profiles\n* PERCENT_WT - 90-th percentile of wall time between all the collected profiles\n* max_wt - maximum wall time between all the collected profiles\n* mark - used to marking method in prompt (just a star sign to mark anything you want, does not affect anything)\n* method - method name\n\n## Prompt commands\n* q - exit\n* 0 - go back in the tree\n* 1,2,3... - go to method N\n* m1,m2,m3... - place a star sign on method N (it was meant to mark methods you've already looked at)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadoo%2Fxhprof_console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbadoo%2Fxhprof_console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbadoo%2Fxhprof_console/lists"}