Skip to content

Commit d486d23

Browse files
committed
enable pprof
1 parent fd5850a commit d486d23

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

site/e2e/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ export const startAgentWithCommand = async (
339339
return cp
340340
}
341341

342-
export const stopAgent = async (cp: ChildProcess) => {
343-
exec(`pkill -P ${cp.pid}`, (error) => {
342+
export const stopAgent = async (cp: ChildProcess, goRun: boolean = true) => {
343+
exec(goRun ? `pkill -P ${cp.pid}` : `kill ${cp.pid}`, (error) => {
344344
if (error) {
345345
throw new Error(`exec error: ${JSON.stringify(error)}`)
346346
}

site/e2e/playwright.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ export default defineConfig({
4646
`--dangerous-disable-rate-limits ` +
4747
`--provisioner-daemons 10 ` +
4848
`--provisioner-daemons-echo ` +
49-
`--provisioner-daemon-poll-interval 50ms`,
49+
`--provisioner-daemon-poll-interval 50ms ` +
50+
`--pprof-enable`,
5051
env: {
5152
...process.env,
5253

site/e2e/tests/outdatedAgent.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ test("ssh with agent " + agentVersion, async ({ page }) => {
5656
})
5757

5858
await stopWorkspace(page, workspaceName)
59-
await stopAgent(agent)
59+
await stopAgent(agent, false)
6060
})

0 commit comments

Comments
 (0)