Skip to content

CPU timing measurement #9

@jayshah1819

Description

@jayshah1819

await this.device.queue.onSubmittedWorkDone();

  if (args?.enableCPUTiming) {
    const t0 = performance.now();                     // start after submission
    await this.device.queue.onSubmittedWorkDone();    // wait for GPU
    const t1 = performance.now();                     // end after GPU finishes
    this.cpuStartTime = t0;
    this.cpuEndTime = t1;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions