The client to use. AvalancheCoreClient
Promise that resolves when the profiler is stopped
import { createAvalancheCoreClient } from '@avalanche-sdk/client'
import { avalanche } from '@avalanche-sdk/client/chains'
import { stopCPUProfiler } from '@avalanche-sdk/client/methods/admin'
const client = createAvalancheCoreClient({
chain: avalanche,
transport: {
type: "http",
url: "<url>",
},
});
await stopCPUProfiler(client);
Stop the CPU profile that was previously started.