mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Tidy a few things up.
git-svn-id: svn://localhost/ardour2/branches/3.0@11311 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
62304d57c6
commit
f0ff841d01
2 changed files with 15 additions and 7 deletions
|
|
@ -18,13 +18,14 @@ export LD_LIBRARY_PATH=$libs/audiographer:$libs/vamp-sdk:$libs/surfaces:$libs/su
|
||||||
export ARDOUR_PANNER_PATH=$libs/panners/2in2out:$libs/panners/1in2out:$libs/panners/vbap
|
export ARDOUR_PANNER_PATH=$libs/panners/2in2out:$libs/panners/1in2out:$libs/panners/vbap
|
||||||
|
|
||||||
export LD_PRELOAD=/home/carl/src/libfakejack/libjack.so
|
export LD_PRELOAD=/home/carl/src/libfakejack/libjack.so
|
||||||
|
session='32tracks'
|
||||||
|
|
||||||
if [ "$1" == "--debug" ]; then
|
if [ "$1" == "--debug" ]; then
|
||||||
gdb ./libs/ardour/run-profiling
|
gdb --args ./libs/ardour/run-profiling $session
|
||||||
elif [ "$1" == "--valgrind" ]; then
|
elif [ "$1" == "--valgrind" ]; then
|
||||||
valgrind ./libs/ardour/run-profiling
|
valgrind ./libs/ardour/run-profiling $session
|
||||||
elif [ "$1" == "--callgrind" ]; then
|
elif [ "$1" == "--callgrind" ]; then
|
||||||
valgrind --tool=callgrind ./libs/ardour/run-profiling
|
valgrind --tool=callgrind ./libs/ardour/run-profiling $session
|
||||||
else
|
else
|
||||||
./libs/ardour/run-profiling $*
|
./libs/ardour/run-profiling $session
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -49,10 +49,15 @@ protected:
|
||||||
TestReceiver test_receiver;
|
TestReceiver test_receiver;
|
||||||
|
|
||||||
int
|
int
|
||||||
main ()
|
main (int argc, char* argv[])
|
||||||
{
|
{
|
||||||
string const test_session_path = "../libs/ardour/test/profiling/sessions/0tracks";
|
if (argc < 2) {
|
||||||
string const test_session_snapshot = "0tracks.ardour";
|
cerr << argv[0] << ": <session>\n";
|
||||||
|
exit (EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
|
string const test_session_path = string_compose ("../libs/ardour/test/profiling/sessions/%1", argv[1]);
|
||||||
|
string const test_session_snapshot = string_compose ("%1.ardour", argv[1]);
|
||||||
|
|
||||||
init (false, true);
|
init (false, true);
|
||||||
SessionEvent::create_per_thread_pool ("test", 512);
|
SessionEvent::create_per_thread_pool ("test", 512);
|
||||||
|
|
@ -69,6 +74,8 @@ main ()
|
||||||
Session* session = new Session (*engine, test_session_path, test_session_snapshot);
|
Session* session = new Session (*engine, test_session_path, test_session_snapshot);
|
||||||
engine->set_session (session);
|
engine->set_session (session);
|
||||||
|
|
||||||
|
cout << "INFO: " << session->get_routes()->size() << " routes.\n";
|
||||||
|
|
||||||
for (int i = 0; i < 32768; ++i) {
|
for (int i = 0; i < 32768; ++i) {
|
||||||
session->process (64);
|
session->process (64);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue