Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19503

profiling the evolution

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <andrea.crotti.0@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.066
X-Spam-Evidence '*H*': 0.87; '*S*': 0.00; 'graph': 0.09; 'summarizes': 0.09; 'thinking,': 0.09; 'received:74.125.82.44': 0.15; 'received:mail-ww0-f44.google.com': 0.15; 'nodes': 0.16; 'share?': 0.16; "wouldn't": 0.17; 'versions': 0.23; "shouldn't": 0.23; 'code': 0.25; 'seconds': 0.25; 'code.': 0.26; 'example': 0.28; 'second': 0.29; 'anyone': 0.31; 'version': 0.31; 'actually': 0.32; 'does': 0.32; 'source': 0.32; 'message-id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.33; 'too': 0.34; 'received:74.125.82': 0.34; 'something': 0.35; 'similar': 0.36; 'two': 0.37; 'but': 0.37; 'received:74.125': 0.37; 'received:google.com': 0.37; 'another': 0.37; 'some': 0.38; 'think': 0.38; 'received:192': 0.38; 'sense': 0.39; 'doing': 0.39; 'did': 0.39; 'might': 0.40; 'to:addr:python.org': 0.40; 'provided': 0.61; 'results': 0.64; 'analysis': 0.77; 'clicking': 0.80; 'hard.': 0.84; 'profiling': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=N9RNZEWSeYdNDGVUlgt4CkfyAdDhvay8taD5wFoTSrk=; b=HZYvnErl+o88B0ZRt+IGo0GgXZWdK5NchVPap1Ht9BIEsYv89/Fj+gkqLKkx43XkAI TfnOgbIK72SDZKH/X9ftpxbsjb3T6n+2BTVx8V942UzqPYxyBLNZ4jC1aOgjzuL2BgAW o4FO9DF6hSlnJDstpkGzISYcAfb59+SYMATkg=
Date Thu, 26 Jan 2012 21:34:11 +0000
From Andrea Crotti <andrea.crotti.0@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111224 Thunderbird/9.0.1
MIME-Version 1.0
To python-list@python.org
Subject profiling the evolution
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5137.1327613658.27778.python-list@python.org> (permalink)
Lines 37
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1327613658 news.xs4all.nl 6915 [2001:888:2000:d::a6]:46487
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19503

Show key headers only | View raw


I am doing some analysis of profiling results and I use gprof2dot to 
generate nice
graphs.

Now I was thinking, wouldn't it be great to have a way to get a nice 
report that summarizes
the evolution of my code.
For example given two versions :

version 1:
func1: 10 seconds
func2: 20 seconds

version 2:
func1: 12 seconds
func2: 21 seconds

change:
func1: + 20 %
func2: + 5%

This requires some analysis of the stats generated but it shouldn't be 
too hard.
Now the second thing is, does it make sense to generate a graph of this 
evolution?
For example we can generate a normal profiling graph but give some 
colors to the
nodes which are changed.

Another great thing would be to have a graph which is actually 
clickable, so clicking
on nodes would take you to the right source code file.. I think only PDF 
can do that
of the format provided by DOT right? And it might not be so trivial, any 
alternatives?

Anyone did something similar and would like to share?

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

profiling the evolution Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-01-26 21:34 +0000

csiph-web