Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Memory Analyzer in QtCreator, How to speed it up?

Memory Analyzer in QtCreator, How to speed it up?

Scheduled Pinned Locked Moved Qt Creator and other tools
valgrindspeedqtcreatorslow
4 Posts 2 Posters 2.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jrch2k10
    wrote on last edited by
    #1

    Hi guys,

    I've been using valgrind and callgrind for a while outside QtCreator and recently tried to use the include tools in QtCreator for valgrind (Memory Analyzer) but no matter the setting, the analyze process is EXTREMELY slow even with simple code can take up to 20 minutes on an I7 with 8gb of ram where a regular callgrind/kcachegrind combo on dolphin(is kinda complex compared to my simple code tests) for example takes 1 or 2 mins tops.

    My guess is QtCreator is forcefully invoking valgrind in the most ultra verbose super deep set of passes and offer no options to scale it back , i mean is cool for final releases or tracking deep memory allocation issues but when you just wanna an simple fast callgrind pass to check your loop or fast verify any ovbious leak locally in your code, this behaviour drives you insane

    So, is there any trick to speed this tools up or i should stay on konsole+valgrind until a future release?

    Tyvm for your time.

    Btw: my OS is ArchLinux all updates, x86_64, Qt-5.5 and QtCreater 3.5.0

    non native speaker here, so sorry for my english

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you already toyed with the Valgrind settings in Qt Creator's Preferences ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      J 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you already toyed with the Valgrind settings in Qt Creator's Preferences ?

        J Offline
        J Offline
        jrch2k10
        wrote on last edited by
        #3

        @SGaist
        Hi, tyvm for you time.

        Actually i kinda fixed it, after debugging qtcreator while using valgrind i relized a signal was taking a year to return to main QCoreApplication exec() loop, hence valgrind was waiting for the process to stop. I feel stupid now(Tm) and im sure im doing something pretty idiotic with that signal to start with and my valgrind console parameters were to shallow to trigger it.

        I simply fixed the exit logic and valgrind now works as expected

        Sorry for the booboo

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          No problem, that's an information that might be useful to someone else :)

          What was taking so long ?

          Since you have it working now, please update the thread title prepending [solved] so that other users may know a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved