--- a/embedding/browser/qt/tests/TestQGeckoEmbed.cpp
+++ b/embedding/browser/qt/tests/TestQGeckoEmbed.cpp
@@ -1,24 +1,31 @@
#include <qapplication.h>
#include "mainwindow.h"
#include "qgeckoembed.h"
#include "nsXPCOMGlue.h"
+#ifdef MOZ_JPROF
+#include "jprof/jprof.h"
+#endif
#include <qdir.h>
int main(int argc, char **argv)
{
QApplication app(argc, argv);
static const GREVersionRange greVersion = {
"1.9a", PR_TRUE,
"2", PR_TRUE
};
+#ifdef MOZ_JPROF
+ setupProfilingStuff();
+#endif
+
char xpcomPath[PATH_MAX];
nsresult rv = GRE_GetGREPathWithProperties(&greVersion, 1, nsnull, 0,
xpcomPath, sizeof(xpcomPath));
if (NS_FAILED(rv)) {
fprintf(stderr, "Couldn't find a compatible GRE.\n");
return 1;
}