Skip to main content
Monitoring & Collection/Profiling
POSTProfilingSince 1.0SynchronousAuth Required

DiffSessions

Compare two profiling sessions and return the diff result.

Execution Availability

Try It Out

Submit a mock request using the current auth context and example-driven inputs.

Request Inputs

Body Fields

  • baseIdStringRequired

    Session ID to use as the base in the diff.

    Example: sess-base001

  • compareIdStringRequired

    Session ID to compare against the base.

    Example: sess-cmp002

  • typeStringRequired

    Profile type shared by both sessions being compared.

    Example: goroutine

Responses

200 OK

On success, this API returns the following response structure.

  • baseSessionIdString

    Session ID used as the base for the diff comparison.

    Example: sess-base001

  • compareSessionIdString

    Session ID used as the comparison target for the diff.

    Example: sess-cmp002

  • newStacksList

    Goroutine stacks present in compare but not in base.

    Example: (nested array)

    • countInteger

      Number of goroutines sharing this stack trace.

      Example: 42

    • stateString

      Current goroutine state (e.g. running, waiting).

      Example: waiting

    • waitReasonString

      Reason the goroutine is waiting, if applicable.

      Example: channel receive

    • framesList

      Stack frames for this goroutine stack trace.

      Example: item1,item2

    • createdByString

      Function that created this goroutine.

      Example: main.startWorker

  • growthCountInteger

    Number of new goroutines found in the comparison session.

    Example: 37

Endpoint

POST/api/v1/profiling/diff

/api/v1/profiling/diff

Operation ID

DiffSessions

Permalink

Request Example

curl -X POST '{host}/api/v1/profiling/diff' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"baseId":"sess-base001","compareId":"sess-cmp002","type":"goroutine"}'

Response Example

200
{
  "baseSessionId": "sess-base001",
  "compareSessionId": "sess-cmp002",
  "newStacks": [
    {}
  ],
  "growthCount": 37
}

Change History

This API has no change history records yet.

View all change history