I have a KRunner plugin, this of course is gui, and I made a custom profile application to check performance, this is console only, but it's linked with the same options as the gui part.

valgrind --tool=massif on my test application shows memory usage used by libGLcore.so

This is the application I tested with last:
Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3. QApplication a(argc, argv);
  4. a.quit();
  5. }
To copy to clipboard, switch view to plain text mode 

This still shows memory usage by libgl, why?

With all my code there running the test massif says opengl is using 70% of the memory. What is going on?

This is the code, including the CMakeLists.txt file I use to build it:
http://fsrunner.googlecode.com/svn/trunk/