description | qscriptprofiler is a profiler for QtScript (a Javascript language that is part of Qt) |
owner | ben@meyerhome.net |
last change | Thu, 8 Nov 2007 22:53:01 +0000 (8 23:53 +0100) |
URL | git://repo.or.cz/qscriptprofiler.git |
| https://repo.or.cz/qscriptprofiler.git |
push URL | ssh://repo.or.cz/qscriptprofiler.git |
| https://repo.or.cz/qscriptprofiler.git (learn more) |
bundle info | qscriptprofiler.git downloadable bundles |
content tags
|
|
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