refactor: make graph target cross-platform
Replaced macOS-specific open command with file:// URL echo for cross-platform compatibility.
This commit is contained in:
2
Makefile
2
Makefile
@@ -31,7 +31,7 @@ explain: build
|
||||
graph:
|
||||
go tool pprof -raw -output=profile/cpu.raw profile/cpu.prof
|
||||
go tool pprof -svg profile/cpu.prof > profile/cpu.svg
|
||||
open profile/cpu.svg
|
||||
echo ">>> View at 'file://$(PWD)/profile/cpu.svg'"
|
||||
|
||||
docs:
|
||||
echo ">>> View at 'http://localhost:6060/pkg/git.maximhutz.com/max/lambda/'"
|
||||
|
||||
Reference in New Issue
Block a user