Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Simple Profiling

  1. #11
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Simple Profiling

    It took me about 20 minutes to find this post

    Anyway - what the heck is a cycle?

    That same call took on average: 17798761.20000 cycles

    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  2. #12

    Simple Profiling

    Quote Originally Posted by Sly
    This goes to show that there are some gems buried in these forums.
    I second that! This looks like a very handy tool indeed.

    PS. For a second there I though Alimonster had returned. Imagine my dissapointment when I saw the date of the first post

  3. #13
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Simple Profiling

    Imagine my dissapointment when I saw the date of the first post
    Isn't it fun finding some of these old posts
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  4. #14

    Simple Profiling

    Uhm, well in this case, yes and no

  5. #15

    Simple Profiling

    Quote Originally Posted by cairnswm
    Anyway - what the heck is a cycle?

    That same call took on average: 17798761.20000 cycles
    It's a clock cycle of the CPU. A 700MHz CPU has 700 million cycles per second. The RDTSC instruction returns the number of clock cycles that have passed since the computer was turned on. That's why it needs an Int64. If it just used a LongInt it would wrap every few seconds with modern CPU speeds.

  6. #16

    Simple Profiling

    RDTSC is not reliable in multi-CPU systems...
    There are only 10 types of people in this world; those who understand binary and those who don't.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •