Function
profiledRequest
(name: string, fn: () => Promise<T | SdkResponse<T>>, service?: string)
Source from the content-addressed store, hash-verified
| 714 | } |
| 715 | |
| 716 | function profiledRequest<T>(name: string, fn: () => Promise<T | SdkResponse<T>>, service?: string) { |
| 717 | return request(() => ACPProfile.measure(name, fn), service) |
| 718 | } |
| 719 | |
| 720 | async function loadDirectorySnapshot(sdk: OpencodeClient, directory: string) { |
| 721 | return ACPProfile.measure("acp.directory.load", async () => { |
Tested by
no test coverage detected