Version: cli-mode
Schema.
List Profiles
Status |
Content Type |
Body Type |
Description |
200 |
application/json |
XhProfiles |
OK |
Collect Profile
Collects XHPROF-compatible PHP profile.
Status |
Content Type |
Body Type |
Description |
202 |
|
|
Accepted |
409 |
application/json |
XhRestErrResponse |
Conflict |
Dot Graph
Name |
In |
Type |
Description |
Examples |
rootSymbol |
query |
String |
|
MyNamespace\MyClass::do |
graphLimit |
query |
Number |
Maximum number of nodes (symbols) in graph. |
|
graphPriority |
query |
'wt' ,
'cpu' ,
'io' |
Graph resource determines nodes selection to expose strongest contributors. |
|
aggregate |
query |
XhAggregatorGroup |
|
|
Status |
Content Type |
Body Type |
Description |
200 |
text/vnd.graphviz |
|
OK |
404 |
application/json |
XhRestErrResponse |
Not Found |
Find Symbol
Name |
In |
Type |
Description |
aggregate |
query |
XhAggregatorGroup |
|
match |
query |
String |
Substring to match in symbol. |
limit |
query |
Number |
Limit number of results. |
Symbol Stat
Name |
In |
Type |
Examples |
aggregate |
query |
XhAggregatorGroup |
|
symbol |
query |
String |
MyNamespace\MyClass::do |
Top Traces
Get traces that occupy most of resource.
Name |
In |
Type |
Description |
Examples |
rootSymbol |
query |
String |
|
MyNamespace\MyClass::do |
aggregate |
query |
XhAggregatorGroup |
|
|
resource |
query |
'wt' ,
'cpu' ,
'io' |
Graph resource determines nodes selection to expose strongest contributors. |
|
limit |
query |
Number |
|
|
Upload Profile
Collects XHPROF-compatible PHP profile from uploaded JSON/PHP-Serialized file.
Name |
In |
Type |
profile |
formData |
null , String , Format: binary |
sample |
formData |
Number |
Status |
Content Type |
Body Type |
Description |
202 |
|
|
Accepted |
409 |
application/json |
XhRestErrResponse |
Conflict |
Upload Profiles
Collects XHPROF-compatible PHP profiles from uploaded JSON/PHP-Serialized files.
Name |
In |
Type |
Description |
profiles |
formData |
Array<null , String , Format: binary> , null |
Files with profile JSON data. |
Status |
Content Type |
Body Type |
Description |
202 |
|
|
Accepted |
409 |
application/json |
XhRestErrResponse |
Conflict |
Property |
Type |
Description |
end |
Number |
Interval end UTC unix timestamp. |
id |
String |
Profile ID. |
labels |
Map<String,String> , null |
|
start |
Number |
Interval start UTC unix timestamp. |
Property |
Type |
addr |
XhAggregatorGroup |
cpu |
String |
edges |
Number |
io |
String |
peakMem |
String |
profiles |
Number |
wt |
String |
Property |
Type |
Description |
as |
Number |
Aggregation size, count of parent profiles. |
cpu |
Number |
CPU time in microseconds. |
ct |
Number |
Count of calls. |
io |
Number |
IO time in microseconds. |
mem.aa |
Number |
The amount of allocated memory. |
mem.na |
Number |
The sum of the number of all allocations in this function. |
mem.nf |
Number |
The sum of the number of all frees in this function. |
mu |
Number |
Memory usage in bytes. |
pmu |
Number |
Peak memory usage in bytes. |
wt |
Number |
Wall time in microseconds. |
Property |
Type |
Description |
id (required) |
String |
Random string created by client to identify profile. |
labels |
Map<String,String> , null |
|
meta |
Map<String,*> , null |
Additional context. |
profile |
Map<String, XhProfileValue > , null |
|
Property |
Type |
Description |
code |
Number |
Application-specific error code. |
context |
Map<String,*> |
Application context. |
error |
String |
Error message. |
status |
String |
Status text. |
Property |
Type |
symbols |
Array<String> , null |
Property |
Type |
as |
String |
cpu |
String |
cpuf |
String |
ct |
String |
ctf |
String |
io |
String |
iof |
String |
ma |
String |
mac |
String |
mf |
String |
mu |
String |
pmu |
String |
wt |
String |
wtf |
String |
Property |
Type |
hash |
String |
stat |
XhRenderValueStat |
symbol |
String |
trace |
Array<String> , null |