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
c2500f80
Commit
c2500f80
authored
14 years ago
by
Merov Linden
Browse files
Options
Downloads
Patches
Plain Diff
STORM-105 : Tweak the data labels to make them easier to read
parent
40979589
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llimage/llimagej2c.cpp
+34
-29
34 additions, 29 deletions
indra/llimage/llimagej2c.cpp
with
34 additions
and
29 deletions
indra/llimage/llimagej2c.cpp
+
34
−
29
View file @
c2500f80
...
@@ -594,17 +594,17 @@ LLImageJ2CImpl::~LLImageJ2CImpl()
...
@@ -594,17 +594,17 @@ LLImageJ2CImpl::~LLImageJ2CImpl()
//----------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------
LLImageCompressionTester
::
LLImageCompressionTester
()
:
LLMetricPerformanceTesterBasic
(
sTesterName
)
LLImageCompressionTester
::
LLImageCompressionTester
()
:
LLMetricPerformanceTesterBasic
(
sTesterName
)
{
{
addMetric
(
"
Total
TimeDecompression"
);
addMetric
(
"Time
Decompression
(s)
"
);
addMetric
(
"
TotalBytes
InDecompression"
);
addMetric
(
"
Volume
In
Decompression
(kB)
"
);
addMetric
(
"
TotalBytes
OutDecompression"
);
addMetric
(
"
Volume
Out
Decompression
(kB)
"
);
addMetric
(
"
Rate
Decompression"
);
addMetric
(
"Decompression
Ratio (x:1)
"
);
addMetric
(
"PerfDecompression"
);
addMetric
(
"Perf
Decompression
(kB/s)
"
);
addMetric
(
"
Total
TimeCompression"
);
addMetric
(
"Time
Compression
(s)
"
);
addMetric
(
"
TotalBytes
InCompression"
);
addMetric
(
"
Volume
In
Compression
(kB)
"
);
addMetric
(
"
TotalBytes
OutCompression"
);
addMetric
(
"
Volume
Out
Compression
(kB)
"
);
addMetric
(
"
Rate
Compression"
);
addMetric
(
"Compression
Ratio (x:1)
"
);
addMetric
(
"PerfCompression"
);
addMetric
(
"Perf
Compression
(kB/s)
"
);
mRunBytesInDecompression
=
0
;
mRunBytesInDecompression
=
0
;
mRunBytesInCompression
=
0
;
mRunBytesInCompression
=
0
;
...
@@ -629,38 +629,43 @@ void LLImageCompressionTester::outputTestRecord(LLSD *sd)
...
@@ -629,38 +629,43 @@ void LLImageCompressionTester::outputTestRecord(LLSD *sd)
std
::
string
currentLabel
=
getCurrentLabelName
();
std
::
string
currentLabel
=
getCurrentLabelName
();
F32
decompressionPerf
=
0.0
f
;
F32
decompressionPerf
=
0.0
f
;
F32
compressionPerf
=
0.0
f
;
F32
compressionPerf
=
0.0
f
;
F32
decompressionRate
=
0.0
f
;
F32
decompressionRate
=
0.0
f
;
F32
compressionRate
=
0.0
f
;
F32
compressionRate
=
0.0
f
;
F32
totalkBInDecompression
=
(
F32
)(
mTotalBytesInDecompression
)
/
1000.0
;
F32
totalkBOutDecompression
=
(
F32
)(
mTotalBytesOutDecompression
)
/
1000.0
;
F32
totalkBInCompression
=
(
F32
)(
mTotalBytesInCompression
)
/
1000.0
;
F32
totalkBOutCompression
=
(
F32
)(
mTotalBytesOutCompression
)
/
1000.0
;
if
(
!
is_approx_zero
(
mTotalTimeDecompression
))
if
(
!
is_approx_zero
(
mTotalTimeDecompression
))
{
{
decompressionPerf
=
(
F32
)(
mTotalBytes
InDecompression
)
/
mTotalTimeDecompression
;
decompressionPerf
=
totalkB
InDecompression
/
mTotalTimeDecompression
;
}
}
if
(
mTotalBytesOut
Decompression
>
0
)
if
(
!
is_approx_zero
(
totalkBIn
Decompression
)
)
{
{
decompressionRate
=
(
F32
)(
mTotalBytesIn
Decompression
)
/
(
F32
)(
mTotalBytesOut
Decompression
)
;
decompressionRate
=
totalkBOut
Decompression
/
totalkBIn
Decompression
;
}
}
if
(
!
is_approx_zero
(
mTotalTimeCompression
))
if
(
!
is_approx_zero
(
mTotalTimeCompression
))
{
{
compressionPerf
=
(
F32
)(
mTotalBytes
InCompression
)
/
mTotalTimeCompression
;
compressionPerf
=
totalkB
InCompression
/
mTotalTimeCompression
;
}
}
if
(
mTotalBytes
OutCompression
>
0
)
if
(
!
is_approx_zero
(
totalkB
OutCompression
)
)
{
{
compressionRate
=
(
F32
)(
mTotalBytes
InCompression
)
/
(
F32
)(
mTotalBytes
OutCompression
)
;
compressionRate
=
totalkB
InCompression
/
totalkB
OutCompression
;
}
}
(
*
sd
)[
currentLabel
][
"
Total
TimeDecompression"
]
=
(
LLSD
::
Real
)
mTotalTimeDecompression
;
(
*
sd
)[
currentLabel
][
"Time
Decompression
(s)
"
]
=
(
LLSD
::
Real
)
mTotalTimeDecompression
;
(
*
sd
)[
currentLabel
][
"
TotalBytes
InDecompression"
]
=
(
LLSD
::
Integer
)
mTotalBytes
InDecompression
;
(
*
sd
)[
currentLabel
][
"
Volume
In
Decompression
(kB)
"
]
=
(
LLSD
::
Real
)
totalkB
InDecompression
;
(
*
sd
)[
currentLabel
][
"
TotalBytes
OutDecompression"
]
=
(
LLSD
::
Integer
)
mTotalBytes
OutDecompression
;
(
*
sd
)[
currentLabel
][
"
Volume
Out
Decompression
(kB)
"
]
=
(
LLSD
::
Real
)
totalkB
OutDecompression
;
(
*
sd
)[
currentLabel
][
"
Rate
Decompression"
]
=
(
LLSD
::
Real
)
decompressionRate
;
(
*
sd
)[
currentLabel
][
"Decompression
Ratio (x:1)
"
]
=
(
LLSD
::
Real
)
decompressionRate
;
(
*
sd
)[
currentLabel
][
"PerfDecompression"
]
=
(
LLSD
::
Real
)
decompressionPerf
;
(
*
sd
)[
currentLabel
][
"Perf
Decompression
(kB/s)
"
]
=
(
LLSD
::
Real
)
decompressionPerf
;
(
*
sd
)[
currentLabel
][
"
Total
TimeCompression"
]
=
(
LLSD
::
Real
)
mTotalTimeCompression
;
(
*
sd
)[
currentLabel
][
"Time
Compression
(s)
"
]
=
(
LLSD
::
Real
)
mTotalTimeCompression
;
(
*
sd
)[
currentLabel
][
"
TotalBytes
InCompression"
]
=
(
LLSD
::
Integer
)
mTotalBytes
InCompression
;
(
*
sd
)[
currentLabel
][
"
Volume
In
Compression
(kB)
"
]
=
(
LLSD
::
Real
)
totalkB
InCompression
;
(
*
sd
)[
currentLabel
][
"
TotalBytes
OutCompression"
]
=
(
LLSD
::
Integer
)
mTotalBytes
OutCompression
;
(
*
sd
)[
currentLabel
][
"
Volume
Out
Compression
(kB)
"
]
=
(
LLSD
::
Real
)
totalkB
OutCompression
;
(
*
sd
)[
currentLabel
][
"
Rate
Compression"
]
=
(
LLSD
::
Real
)
compressionRate
;
(
*
sd
)[
currentLabel
][
"Compression
Ratio (x:1)
"
]
=
(
LLSD
::
Real
)
compressionRate
;
(
*
sd
)[
currentLabel
][
"PerfCompression"
]
=
(
LLSD
::
Real
)
compressionPerf
;
(
*
sd
)[
currentLabel
][
"Perf
Compression
(kB/s)
"
]
=
(
LLSD
::
Real
)
compressionPerf
;
}
}
void
LLImageCompressionTester
::
updateCompressionStats
(
const
F32
deltaTime
)
void
LLImageCompressionTester
::
updateCompressionStats
(
const
F32
deltaTime
)
...
...
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