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
85df1df3
Commit
85df1df3
authored
12 years ago
by
Richard Linden
Browse files
Options
Downloads
Patches
Plain Diff
SH-3406 WIP convert fast timers to lltrace system
gcc 4.1 fixes
parent
dd54893b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llcommon/llunit.h
+9
-3
9 additions, 3 deletions
indra/llcommon/llunit.h
indra/newview/llviewerstatsrecorder.cpp
+8
-2
8 additions, 2 deletions
indra/newview/llviewerstatsrecorder.cpp
with
17 additions
and
5 deletions
indra/llcommon/llunit.h
+
9
−
3
View file @
85df1df3
...
...
@@ -75,9 +75,9 @@ struct LLUnit
typedef
LLUnit
<
UNIT_TYPE
,
STORAGE_TYPE
>
self_t
;
typedef
STORAGE_TYPE
storage_t
;
//
value
initialization
LLUnit
(
storage_t
value
=
storage_t
()
)
:
mValue
(
value
)
//
default
initialization
LLUnit
()
:
mValue
(
storage_t
()
)
{}
// unit initialization and conversion
...
...
@@ -85,6 +85,12 @@ struct LLUnit
LLUnit
(
LLUnit
<
OTHER_UNIT
,
OTHER_STORAGE
>
other
)
:
mValue
(
convert
(
other
))
{}
// value initialization
template
<
typename
CONVERTABLE_TYPE
>
LLUnit
(
CONVERTABLE_TYPE
value
)
:
mValue
(
value
)
{}
// value assignment
self_t
&
operator
=
(
storage_t
value
)
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llviewerstatsrecorder.cpp
+
8
−
2
View file @
85df1df3
...
...
@@ -216,7 +216,10 @@ void LLViewerStatsRecorder::writeToLog( F32 interval )
<<
"Texture Fetch bps
\t
"
<<
"
\n
"
;
fwrite
(
data_msg
.
str
().
c_str
(),
1
,
data_msg
.
str
().
size
(),
mObjectCacheFile
);
if
(
fwrite
(
data_msg
.
str
().
c_str
(),
1
,
data_msg
.
str
().
size
(),
mObjectCacheFile
)
!=
data_msg
.
str
().
size
())
{
llwarns
<<
"Failed to write log file."
<<
llendl
;
}
}
else
{
...
...
@@ -249,7 +252,10 @@ void LLViewerStatsRecorder::writeToLog( F32 interval )
<<
"
\t
"
<<
(
mTextureFetchSize
*
8
/
delta_time
)
<<
"
\n
"
;
fwrite
(
data_msg
.
str
().
c_str
(),
1
,
data_msg
.
str
().
size
(),
mObjectCacheFile
);
if
(
fwrite
(
data_msg
.
str
().
c_str
(),
1
,
data_msg
.
str
().
size
(),
mObjectCacheFile
)
!=
data_msg
.
str
().
size
())
{
llwarns
<<
"Failed to write log file."
<<
llendl
;
}
clearStats
();
}
...
...
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