performance-x/xhprof-data-processor
最新稳定版本:v1.0.0
Composer 安装命令:
composer require performance-x/xhprof-data-processor
包简介
Enhances XHProf profiling data by adding detailed function signatures including parameter types
README 文档
README
Enhances XHProf profiling data by adding detailed function signatures including parameter types while keeping class names short and readable.
Installation
composer require performance-x/xhprof-data-processor
Usage
use PerformanceX\XHProfProcessor\XHProfDataProcessor; $processor = new XHProfDataProcessor(); $processed_data = $processor->process($xhprof_data);
Example
Input:
[
"main()" => [
"ct" => 1,
"wt" => 100
],
"SomeClass::method==>strlen" => [
"ct" => 1,
"wt" => 50
]
]
Output:
[
"main()" => [
"ct" => 1,
"wt" => 100
],
"SomeClass::method(User $user, array $data)==>strlen(string $string)" => [
"ct" => 1,
"wt" => 50
]
]
Features
- Adds parameter type information to function calls
- Uses short class names for better readability
- Preserves XHProf recursion markers
- Maintains all original metrics
- Handles special types (self, static, parent)
Requirements
- PHP 8.1 or higher
- Reflection extension enabled
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-22