install.fairie/.config/taskfiles/web/Taskfile-profile.yml
Brian Zalewski f42899b107 Latest
2022-12-24 15:04:59 -05:00

27 lines
818 B
YAML

---
version: '3'
tasks:
detect-memory-leaks:
deps:
- :install:npm:fuite
summary: |
# Detect memory leaks
Detect memory leaks in web applications with [fuite](https://github.com/nolanlawson/fuite).
By default, fuite will assume that the site is a client-rendered web application, and it will
search for internal links on the given page. Then for each link, it will:
1. Click the link
2. Press the browser back button
3. Repeat to see if the scenario is leaking
**Example usage:**
`task web:profile:detect-memory-leaks -- https://example.com`
log:
error: Failed to run `fuite {{.CLI_ARGS}}`
start: Running `fuite {{.CLI_ARGS}}`
success: Successfully ran `fuite {{.CLI_ARGS}}`
cmds:
- |
fuite {{.CLI_ARGS}}