summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormikesamuel <mikesamuel@ad8eed46-c659-4a31-e19d-951d88f54425>2011-03-06 21:43:49 +0000
committermikesamuel <mikesamuel@ad8eed46-c659-4a31-e19d-951d88f54425>2011-03-06 21:43:49 +0000
commit842e0c01e15abedc786372c113579385e36473ab (patch)
treeb66713d38d9f8b47708ed161862b3f87193c984f /Makefile
parent0f3a7565157c70edb1935f04888fdc0407397fab (diff)
downloadsanitizer-842e0c01e15abedc786372c113579385e36473ab.tar.gz
fix benchmarks and add a profiling target to the Makefile
git-svn-id: http://owasp-java-html-sanitizer.googlecode.com/svn/trunk@8 ad8eed46-c659-4a31-e19d-951d88f54425
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b992e5b..0a19318 100644
--- a/Makefile
+++ b/Makefile
@@ -21,4 +21,8 @@ out/tests.tstamp: out out/classes.tstamp src/tests/org/owasp/html/*.java
javac ${JAVAC_FLAGS} -classpath out:${TEST_CLASSPATH} -d out src/tests/org/owasp/html/*.java && touch out/tests.tstamp
benchmark: out/tests.tstamp
- java -cp ${CLASSPATH}:out org.owasp.html.Benchmark benchmark-data/Yahoo\!.html
+ java -cp ${TEST_CLASSPATH}:out org.owasp.html.Benchmark benchmark-data/Yahoo\!.html
+
+profile: out/java.hprof.txt
+out/java.hprof.txt: out/tests.tstamp
+ java -cp ${TEST_CLASSPATH}:out -agentlib:hprof=cpu=times,format=a,file=out/java.hprof.txt,lineno=y,doe=y org.owasp.html.Benchmark benchmark-data/Yahoo\!.html