From 8de55d266c8bff9ebe04beaf340debdbd3af9782 Mon Sep 17 00:00:00 2001 From: z7zmey Date: Sun, 1 Jul 2018 00:35:32 +0300 Subject: [PATCH] Makefile is updated --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 14e7188..fe35000 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ build: go build run: - ./php-parser $(PHPFILE) + ./php-parser -d go $(PHPFILE) test: go test ./... @@ -36,17 +36,17 @@ compile: ./php5/php5.go ./php7/php7.go ./scanner/scanner.go goyacc -o $@ $< cpu_pprof: - GOGC=off go test -cpuprofile cpu.pprof -bench=. -benchtime=20s ./php7 + go test -cpuprofile cpu.pprof -bench=. -benchtime=20s ./php7 go tool pprof ./php7.test cpu.pprof mem_pprof: - GOGC=off go test -memprofile mem.pprof -bench=. -benchtime=20s -benchmem ./php7 + go test -memprofile mem.pprof -bench=. -benchtime=20s -benchmem ./php7 go tool pprof -alloc_objects ./php7.test mem.pprof cpu_pprof_php5: - GOGC=off go test -cpuprofile cpu.prof -bench=. -benchtime=20s ./php5 + go test -cpuprofile cpu.prof -bench=. -benchtime=20s ./php5 go tool pprof ./php5.test cpu.prof mem_pprof_php5: - GOGC=off go test -memprofile mem.prof -bench=. -benchtime=20s -benchmem ./php5 + go test -memprofile mem.prof -bench=. -benchtime=20s -benchmem ./php5 go tool pprof -alloc_objects ./php5.test mem.prof