Profiles

Compare two profile queries as one call tree

Merges the baseline and comparison queries and folds both into one call tree where each node carries both sides' values, for a differential Flame Graph and a Top Table of changes. Both sides need the same profile_type and profile_unit.

post/api/{org_id}/{stream_name}/profiles/diff

Request

Path parameters

org_idstring required

Organization name

stream_namestring required

Profiles stream name

Request body

max_nodesinteger nullable

Response

Success

baseline_totalinteger required

Baseline total over all its stacks; above root.before_total when truncated.

comparison_totalinteger required

Comparison total over all its stacks; above root.total when truncated.

profile_typestring required
rootobject required

Call tree: total / self are the comparison side, before_* the baseline.

tookinteger required
topobject[] required

One row per function from both sides, largest share change first (pre-truncation).

tree_truncatedboolean required

True when the call tree was cut to max_nodes and light nodes folded into other.

truncatedboolean required

True when either side exceeded the unique-stack limit.

unitstring required

Changes

No recorded changes to this operation across all 1 revision of this API.