Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
584d0ac6
Commit
584d0ac6
authored
15 years ago
by
Richard Nelson
Browse files
Options
Downloads
Patches
Plain Diff
LLFastTimer::dumpCurTimes() now gives accurate times mid-frame
reviewed by Brad
parent
ec84b639
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llcommon/llfasttimer.h
+6
-4
6 additions, 4 deletions
indra/llcommon/llfasttimer.h
with
6 additions
and
4 deletions
indra/llcommon/llfasttimer.h
+
6
−
4
View file @
584d0ac6
...
@@ -114,8 +114,9 @@ class LLFastTimer
...
@@ -114,8 +114,9 @@ class LLFastTimer
// recursive call to gather total time from children
// recursive call to gather total time from children
static
void
accumulateTimings
();
static
void
accumulateTimings
();
// called once per frame by LLFastTimer
// updates cumulative times and hierarchy,
static
void
processFrame
();
// can be called multiple times in a frame, at any point
static
void
processTimes
();
static
void
buildHierarchy
();
static
void
buildHierarchy
();
static
void
resetFrame
();
static
void
resetFrame
();
...
@@ -178,8 +179,9 @@ class LLFastTimer
...
@@ -178,8 +179,9 @@ class LLFastTimer
{
{
#if FAST_TIMER_ON
#if FAST_TIMER_ON
NamedTimer
::
FrameState
*
frame_state
=
mFrameState
;
NamedTimer
::
FrameState
*
frame_state
=
mFrameState
;
frame_state
->
mLastStartTime
=
get_cpu_clock_count
();
U64
cur_time
=
get_cpu_clock_count
();
mStartSelfTime
=
frame_state
->
mLastStartTime
;
frame_state
->
mLastStartTime
=
cur_time
;
mStartSelfTime
=
cur_time
;
frame_state
->
mActiveCount
++
;
frame_state
->
mActiveCount
++
;
frame_state
->
mCalls
++
;
frame_state
->
mCalls
++
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment