feat: add profiling options to tests in Makefile (#21488)
Usage example:
```bash
$ make test TEST_CPUPROFILE=cpu.prof TEST_MEMPROFILE=mem.prof TEST_PACKAGES=./coderd
```
Note that `TEST_PACKAGES` has to be specified, otherwise you get `cannot
use -{cpu,memory}profile flag with multiple packages`.
Signed-off-by: Danny Kopping <danny@coder.com>
This commit is contained in:
1 parent
49a42eff5c
commit
40adf91cb0
1 file changed
+8
Reference in new issue
Block a user