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
0e1283cf
Commit
0e1283cf
authored
12 years ago
by
Richard Linden
Browse files
Options
Downloads
Plain Diff
Automated merge with
ssh://hg.lindenlab.com/richard/viewer-interesting-metrics
parents
1c894c05
93aca485
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llcommon/llfasttimer.cpp
+5
-5
5 additions, 5 deletions
indra/llcommon/llfasttimer.cpp
indra/newview/llappviewer.cpp
+1
-3
1 addition, 3 deletions
indra/newview/llappviewer.cpp
with
6 additions
and
8 deletions
indra/llcommon/llfasttimer.cpp
+
5
−
5
View file @
0e1283cf
...
...
@@ -269,8 +269,8 @@ void BlockTimer::buildHierarchy()
if
(
timer
.
mParent
==
&
BlockTimer
::
getRootTimer
())
{
if
(
timer
.
getPrimaryAccumulator
().
mLastCaller
)
{
timer
.
setParent
(
timer
.
getPrimaryAccumulator
().
mLastCaller
);
{
timer
.
setParent
(
timer
.
getPrimaryAccumulator
().
mLastCaller
);
}
// no need to push up tree on first use, flag can be set spuriously
timer
.
getPrimaryAccumulator
().
mMoveUpTree
=
false
;
...
...
@@ -392,7 +392,7 @@ void BlockTimer::resetFrame()
}
call_count
++
;
F64
iclock_freq
=
1000.0
/
countsPerSecond
();
// good place to calculate clock frequency
F64
iclock_freq
=
1000.0
/
get_clock_count
();
// good place to calculate clock frequency
F64
total_time
=
0
;
LLSD
sd
;
...
...
@@ -514,7 +514,7 @@ std::vector<BlockTimer*>& BlockTimer::getChildren()
//static
void
BlockTimer
::
nextFrame
()
{
BlockTimer
::
countsPerSecond
();
// good place to calculate clock frequency
get_clock_count
();
// good place to calculate clock frequency
U64
frame_time
=
BlockTimer
::
getCPUClockCount64
();
if
((
frame_time
-
sLastFrameTime
)
>>
8
>
0xffffffff
)
{
...
...
@@ -538,7 +538,7 @@ void Time::dumpCurTimes()
// accumulate timings, etc.
BlockTimer
::
processTimes
();
F64
clock_freq
=
(
F64
)
BlockTimer
::
countsPerSecond
();
F64
clock_freq
=
(
F64
)
get_clock_count
();
F64
iclock_freq
=
1000.0
/
clock_freq
;
// clock_ticks -> milliseconds
// walk over timers in depth order and output timings
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llappviewer.cpp
+
1
−
3
View file @
0e1283cf
...
...
@@ -1353,6 +1353,7 @@ bool LLAppViewer::mainLoop()
gGLActive
=
FALSE
;
}
LLTrace
::
get_frame_recording
().
nextPeriod
();
}
pingMainloopTimeout
(
"Main:Sleep"
);
...
...
@@ -4371,9 +4372,6 @@ void LLAppViewer::idle()
update_statistics
();
}
LLTrace
::
get_frame_recording
().
nextPeriod
();
////////////////////////////////////////
//
// Handle the regular UI idle callbacks as well as
...
...
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