From 7ee20480a4c46f01ca93376ba3a40048ceffe1a2 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 21 May 2010 13:24:23 +0000 Subject: [PATCH] Added a TODO note --- lib/core/common.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/common.py b/lib/core/common.py index 98fa5af27..59c59acd4 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1113,6 +1113,8 @@ def profile(profileOutputFile=None, imageOutputFile=None): logger.info(infoMsg) graphScriptPath = os.path.join(paths.SQLMAP_EXTRAS_PATH, 'gprof2dot', 'gprof2dot.py') + + # TODO: find the Windows version of Unix command 'dot' process = execute('%s %s -f pstats %s | dot -Tpng -o %s' % (sys.executable, graphScriptPath, profileOutputFile, imageOutputFile), shell=True, stdout=None, stderr=PIPE) processStderr = process.communicate()[1]