MCPcopy Index your code
hub / github.com/coder/coder / exportDebugPprof

Function exportDebugPprof

site/e2e/reporter.ts:25–36  ·  view source on GitHub ↗
(outputFile: string)

Source from the content-addressed store, hash-verified

23}
24
25const exportDebugPprof = async (outputFile: string) => {
26 const axiosInstance = API.getAxiosInstance();
27 const response = await axiosInstance.get(
28 `http://127.0.0.1:${coderdPProfPort}/debug/pprof/goroutine?debug=1`,
29 );
30
31 if (response.status !== 200) {
32 throw new Error(`Error: Received status code ${response.status}`);
33 }
34
35 await fs.writeFile(outputFile, response.data);
36};
37
38export default CoderReporter;

Callers 1

onTestEndMethod · 0.85

Calls 2

getMethod · 0.80
writeFileMethod · 0.80

Tested by

no test coverage detected