Skip to main content
Monitoring & Collection/Profiling

DiffSessions

Compare two profiling sessions and return the diff result.

POST/api/v1/profiling/diff

Operation ID

DiffSessions

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Body Fields

  • baseId
    StringRequired

    Session ID to use as the base in the diff.

    Example: sess-base001

  • compareId
    StringRequired

    Session ID to compare against the base.

    Example: sess-cmp002

  • type
    StringRequired

    Profile type shared by both sessions being compared.

    Example: goroutine

Responses

200 OK
200 OK

On success, this API returns the following response structure.

  • baseSessionId
    String

    Session ID used as the base for the diff comparison.

    Example: sess-base001

  • compareSessionId
    String

    Session ID used as the comparison target for the diff.

    Example: sess-cmp002

  • newStacks
    List

    Goroutine stacks present in compare but not in base.

    Example: (nested array)

    • count
      Integer

      Number of goroutines sharing this stack trace.

      Example: 42

    • state
      String

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

      Example: waiting

    • waitReason
      String

      Reason the goroutine is waiting, if applicable.

      Example: channel receive

    • frames
      List

      Stack frames for this goroutine stack trace.

      Example: item1,item2

    • createdBy
      String

      Function that created this goroutine.

      Example: main.startWorker

  • growthCount
    Integer

    Number of new goroutines found in the comparison session.

    Example: 37