Skip to content

Commit

Permalink
Makefile profile_mem changed to profile debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
JetSetIlly committed Jun 16, 2021
1 parent 109f3af commit 617dec7
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ compileFlags = '-c 3 -B -wb=false'
# profilingRom = roms/Homebrew/CDF/galaga_dmo_v2_NTSC.bin
# profilingRom = roms/Homebrew/DPC+ARM/ZaxxonHDDemo_150927_NTSC.bin
# profilingRom = roms/Rsboxing.bin
# profilingRom = "test_roms/plusrom/sokoboo Plus.bin"
profilingRom = "test_roms/plusrom/sokoboo Plus.bin"
# profilingRom = "roms/starpath/02 - Communist Mutants From Space (Ntsc).mp3"
# profilingRom = roms/Homebrew/CDF/gorfarc_20201231_demo1_NTSC.bin
profilingRom = roms/Pitfall.bin
# profilingRom = roms/Pitfall.bin

.PHONY: all clean tidy generate check_lint lint check_glsl glsl_validate check_pandoc readme_spell test race race_debug profile profile_cpu profile_mem profile_trace build_assertions build check_upx release release_statsview cross_windows cross_windows_statsview binaries check_gotip build_with_gotip

Expand Down Expand Up @@ -73,8 +73,6 @@ profile:

profile_cpu: generate test
@$(goBinary) build -gcflags $(compileFlags)
# @echo "use window close button to end (CTRL-C will quit the Makefile script)"
# @./gopher2600 run --profile=cpu $(profilingRom)
@echo "performance mode running for 20s"
@./gopher2600 performance --profile=cpu --fpscap=false --duration=20s $(profilingRom)
@$(goBinary) tool pprof -http : ./gopher2600 performance_cpu.profile
Expand All @@ -84,18 +82,12 @@ profile_cpu_again:

profile_mem: generate test
@$(goBinary) build -gcflags $(compileFlags)
# @echo "use window close button to end (CTRL-C will quit the Makefile script)"
# @./gopher2600 run --profile=cpu $(profilingRom)
@echo "use window close button to end (CTRL-C will quit the Makefile script)"
@echo "performance mode running for 20s"
@./gopher2600 performance --profile=mem --fpscap=false --duration=20s $(profilingRom)
@$(goBinary) tool pprof -http : ./gopher2600 performance_mem.profile
@./gopher2600 debug --profile=mem $(profilingRom)
@$(goBinary) tool pprof -http : ./gopher2600 debugger_mem.profile

profile_trace: generate test
@$(goBinary) build -gcflags $(compileFlags)
# @echo "use window close button to end (CTRL-C will quit the Makefile script)"
# @./gopher2600 run --profile=cpu $(profilingRom)
@echo "use window close button to end (CTRL-C will quit the Makefile script)"
@echo "performance mode running for 20s"
@./gopher2600 performance --profile=trace --fpscap=false --duration=20s $(profilingRom)
@$(goBinary) tool trace -http : performance_trace.profile
Expand Down

0 comments on commit 617dec7

Please sign in to comment.