public
Description: A tool to profile QScript (Javascript)
Homepage:
Clone URL: git://github.com/icefox/qscriptprofiler.git
icefox (author)
Thu Nov 08 14:53:01 -0800 2007
commit  8f4f3a7b7468d37f6ec87395223cd6a2dbf49953
tree    843f9435574f0341b87d78d39dcdb9e9ce39e475
parent  794ebf76b2f1a49f1c7fa629049fcfeee13583e5
name age message
file .gitignore Thu Nov 08 14:24:42 -0800 2007 Rename project from qsprofiler to qscriptprofiler [icefox]
file LICENSE Thu Sep 27 15:58:08 -0700 2007 Initial commit [icefox]
file README Thu Nov 08 14:53:01 -0800 2007 Fix typos [icefox]
directory examples/ Thu Sep 27 15:58:08 -0700 2007 Initial commit [icefox]
file qscriptprofiler.pro Thu Nov 08 14:24:42 -0800 2007 Rename project from qsprofiler to qscriptprofiler [icefox]
directory screenshots/ Thu Nov 08 14:24:42 -0800 2007 Rename project from qsprofiler to qscriptprofiler [icefox]
directory src/ Thu Nov 08 14:25:01 -0800 2007 Remove old files [icefox]
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