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. How to profile ide code?
Forum Updated to NodeBB v4.3 + New Features

How to profile ide code?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
7 Posts 3 Posters 1.9k Views 2 Watching
  • 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.
  • Q Offline
    Q Offline
    Q139
    wrote on last edited by A Former User
    #1

    Is it possible to profile line executions or function executions without adding much additional profiling code?
    Best if data shows cpu time not just times of lines or functions executed so it is easy to detect bottleneck code.
    Have tryed valgrind already.

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

      Hi,

      Did you follow the Profiling Function Execution chapter of Qt Creator's documentation ?

      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
      • Q Offline
        Q Offline
        Q139
        wrote on last edited by
        #3

        I have gone over it few times but while using valgrind is it possile to output absolute % of function usages?

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

          What do you mean by "output absolute % of function usages" ?

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

          Q 1 Reply Last reply
          0
          • SGaistS SGaist

            What do you mean by "output absolute % of function usages" ?

            Q Offline
            Q Offline
            Q139
            wrote on last edited by Q139
            #5

            @SGaist To output function usages compared to overall resource used by all other functions.

            jsulmJ 1 Reply Last reply
            0
            • Q Q139

              @SGaist To output function usages compared to overall resource used by all other functions.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @Q139 Sorry, but your explanation is really unclear. Do you mean CPU usage (like 10% of CPU time)?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              Q 1 Reply Last reply
              0
              • jsulmJ jsulm

                @Q139 Sorry, but your explanation is really unclear. Do you mean CPU usage (like 10% of CPU time)?

                Q Offline
                Q Offline
                Q139
                wrote on last edited by
                #7

                @jsulm Yes

                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