descriptionqscriptprofiler is a profiler for QtScript (a Javascript language that is part of Qt)
ownerben@meyerhome.net
last changeThu, 8 Nov 2007 22:53:01 +0000 (8 23:53 +0100)
content tags
add:
README
qscriptprofiler is a profiler for QtScript (a Javascript language that is part of Qt)

qscriptprofiler runs with script files as arguments that are each executed in the order they are passed.  At the end it will generate a callgrind file that can be loaded in KCachegrind.  KCachegrind is a very good visual tool for profile data.  qscriptprofiler uses gettimeofday() to determine how long something takes so there is the possibility that it isn't completly accurate if your system is under heavy load.  The profiler can be used in other projects and a pri file is included.  QSProfiler uses the QScriptEngineAgent which is part of Qt 4.4 and greater (As of this writing 4.4 isn't released, but you can down snapshots) 

For more information about kcachegrind go here:
http://kcachegrind.sourceforge.net/cgi-bin/show.cgi

For more information about QtScript go here:
http://doc.trolltech.com/4/qtscript.html

TO BUILD:
---
qmake
make

An example is included which is the traveling salsman problem as solved with a genetic algorithm.  To run it do the following:
./qscriptprofiler examples/javascriptgeneticalgorithm.js examples/travelingsalesman.js 

- Benjamin Meyer
shortlog
2007-11-08 Benjamin C... Fix typosmaster
2007-11-08 Benjamin C... Tweak wording
2007-11-08 Benjamin C... Remove old files
2007-11-08 Benjamin C... Rename project from qsprofiler to qscriptprofiler
2007-09-27 Benjamin C... remove debug's and dead code
2007-09-27 Benjamin C... Ignore generated files
2007-09-27 Benjamin C... Initial commit
heads
16 years ago master