install.fairie/.config/taskfiles/web/Taskfile-profile.yml

28 lines
818 B
YAML
Raw Normal View History

2022-12-24 12:04:59 -08:00
---
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}}