mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-17 21:10:43 +00:00
### Description
**This PR is a replacement of #17820.**
allow to specify callback for profiling data
*Previous*:
```js
ort.env.webgpu.profilingMode = 'default'; // enable profiling
// profiling data will output to console.
```
*Now*:
```js
ort.env.webgpu.profiling = {
mode: 'default'; // enable profiling
ondata: (data) => {
// .. process the profiling data
}
};
//for each kernel, "ondata" will be called once. only output to console if ondata is not specified.
```
|
||
|---|---|---|
| .. | ||
| backend-impl.ts | ||
| backend.ts | ||
| env-impl.ts | ||
| env.ts | ||
| index.ts | ||
| inference-session-impl.ts | ||
| inference-session.ts | ||
| onnx-value.ts | ||
| tensor-conversion-impl.ts | ||
| tensor-conversion.ts | ||
| tensor-factory-impl.ts | ||
| tensor-factory.ts | ||
| tensor-impl-type-mapping.ts | ||
| tensor-impl.ts | ||
| tensor-utils-impl.ts | ||
| tensor-utils.ts | ||
| tensor.ts | ||
| training-session-impl.ts | ||
| training-session.ts | ||
| version.ts | ||