-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: fitconv add CSV to FIT File converter (#168)
* cli: fitconv add support for converting CSV file back into FIT file * add copyright license
- Loading branch information
Showing
8 changed files
with
2,621 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.PHONY: build build-esc run pprof pprof-cpu pprof-mem trace took | ||
|
||
build: | ||
go build main.go | ||
|
||
build-esc: # escape analysis | ||
go build -gcflags="-m=2" main.go | ||
|
||
run: | ||
make build | ||
./main $(wordlist 2, $(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) | ||
|
||
pprof: | ||
make build | ||
./main -opt $(opt) $(wordlist 2, $(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) | ||
go tool pprof -http=:8080 $(opt).pprof | ||
|
||
pprof-cpu: | ||
make pprof opt=cpu $(wordlist 2, $(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) | ||
|
||
pprof-mem: | ||
make pprof opt=mem $(wordlist 2, $(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) | ||
|
||
trace: | ||
make build | ||
./main -opt trace $(wordlist 2, $(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) | ||
go tool trace trace.out | ||
|
||
took: | ||
make build | ||
./main -opt took $(wordlist 2, $(words $(MAKECMDGOALS)),$(MAKECMDGOALS)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.