[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Profiler: Implement output function 'profshow'
From: |
Daniel Kraft |
Subject: |
Profiler: Implement output function 'profshow' |
Date: |
Wed, 20 Jul 2011 18:40:04 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.18) Gecko/20110616 Lightning/1.0b2 Thunderbird/3.1.11 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
this is a follow-up patch on my last profiler changeset (which
implemented profile.m). This adds a function 'profshow', which can be
used to print a simple flat-profile table. As far as I understood the
thread about Matlab output, there's no equivalent function(ality) there,
so I hope my implementation is useful and looks ok. But of course,
comments welcome!
In particular, I have two questions:
* Should I also print the 'IsRecursive' flag in the table? While it
does not really fit into a flat profile table (IMHO), this would be a
good place to show it.
* In general for the profiler, should I add tests? I'm much in favour
of testing as much as possible, but I'm not sure how to do this best.
Maybe by some hierarchy of test-functions which call sleep at some
points? And then compare the profiler output with expected times up to
some "epsilon"?
Yours,
Daniel
- --
OpenPGP: 3BA2 3DDB 7758 F010 BDAB 0DCF 527E 79BA A3B5 3998
- --
Done: Arc-Bar-Cav-Kni-Ran-Rog-Sam-Tou-Val-Wiz
To go: Hea-Mon-Pri
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJOJwTjAAoJEFJ+ebqjtTmYFQcQAJ4SRomoLjVkSxjSLKziqG9i
HFYIzggunFGxd6Yu2r5wS+Y/RWzjhzqX/8ujXNaZMAP1IrVXXh9ONnlhdR6AKxgh
hnNH76xjZYmYOBPID1eGbdBAw1VzvmPxUtURwFc0dWQ02ecG+z+VNnZX5w1T2IBe
pKtgm40zmlEluzpRLbHvfj6bAj6gTfGvqDm+whS41bMPleEIo5obItanpZf+bb2t
Qipl9fOplcKIWTBMQXNIIr8+QaAFHHfVVU14SJeiDef1cl20w0v4mTLA6IJKq8D9
XzIqphyh6xI/bFGBZhmE0L6QP2UlOAbuXZZxXXZbCoTL9Iv6PMgeQyvOtuC9dxHx
LWM+AJfq/sCBdPMtVT9vggIy8ScRRHdcvtMpU153z02ACefaGpxPnRAcojupxNr2
/8wTtCjG4FcS3Bgq3sZLHGpI+p7DlmrsB0aY8ihEugQGZH5OdobxgWE558DPIHc7
OUo8QHH/20E2ju5WYWjy2w/dVhOWpI8sQ6meKnvPy2byw5dOQ/ANpBDAEgrnPpYE
oUTFupGmq+bUPYGkt/CC1a7y9W5L3iVjDuaDBBtorCZyidZ7Kr3bQw2YdwMVYSjT
YAEjFZXzIM17PE8E5MsuNH2l043q0hNpTXI9jFZfrlr1bMlbF/ywUUVuiQpD5a4t
j9Swz8VdzhQa5Tx1XC7M
=vn9T
-----END PGP SIGNATURE-----
patch2.diff
Description: Text document
patch2.diff.sig
Description: Binary data
- Profiler: Implement output function 'profshow',
Daniel Kraft <=