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
c52a8783
Commit
c52a8783
authored
12 years ago
by
simon@Simon-PC.lindenlab.com
Browse files
Options
Downloads
Patches
Plain Diff
MAINT-1173 : Top Scripts: Break down usage by parcel. Reviewed by Kelly
parent
3ca7e94d
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llfloatertopobjects.cpp
+39
-25
39 additions, 25 deletions
indra/newview/llfloatertopobjects.cpp
indra/newview/skins/default/xui/en/floater_top_objects.xml
+14
-14
14 additions, 14 deletions
indra/newview/skins/default/xui/en/floater_top_objects.xml
with
53 additions
and
39 deletions
indra/newview/llfloatertopobjects.cpp
+
39
−
25
View file @
c52a8783
...
@@ -168,9 +168,11 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
...
@@ -168,9 +168,11 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
F32
score
;
F32
score
;
std
::
string
name_buf
;
std
::
string
name_buf
;
std
::
string
owner_buf
;
std
::
string
owner_buf
;
std
::
string
parcel_buf
(
"unknown"
);
F32
mono_score
=
0.
f
;
F32
mono_score
=
0.
f
;
bool
have_extended_data
=
false
;
bool
have_extended_data
=
false
;
S32
public_urls
=
0
;
S32
public_urls
=
0
;
F32
script_memory
=
0.
f
;
msg
->
getU32Fast
(
_PREHASH_ReportData
,
_PREHASH_TaskLocalID
,
task_local_id
,
block
);
msg
->
getU32Fast
(
_PREHASH_ReportData
,
_PREHASH_TaskLocalID
,
task_local_id
,
block
);
msg
->
getUUIDFast
(
_PREHASH_ReportData
,
_PREHASH_TaskID
,
task_id
,
block
);
msg
->
getUUIDFast
(
_PREHASH_ReportData
,
_PREHASH_TaskID
,
task_id
,
block
);
...
@@ -180,12 +182,18 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
...
@@ -180,12 +182,18 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
msg
->
getF32Fast
(
_PREHASH_ReportData
,
_PREHASH_Score
,
score
,
block
);
msg
->
getF32Fast
(
_PREHASH_ReportData
,
_PREHASH_Score
,
score
,
block
);
msg
->
getStringFast
(
_PREHASH_ReportData
,
_PREHASH_TaskName
,
name_buf
,
block
);
msg
->
getStringFast
(
_PREHASH_ReportData
,
_PREHASH_TaskName
,
name_buf
,
block
);
msg
->
getStringFast
(
_PREHASH_ReportData
,
_PREHASH_OwnerName
,
owner_buf
,
block
);
msg
->
getStringFast
(
_PREHASH_ReportData
,
_PREHASH_OwnerName
,
owner_buf
,
block
);
if
(
msg
->
has
(
"DataExtended"
))
if
(
msg
->
has
(
"DataExtended"
))
{
{
have_extended_data
=
true
;
have_extended_data
=
true
;
msg
->
getU32
(
"DataExtended"
,
"TimeStamp"
,
time_stamp
,
block
);
msg
->
getU32
(
"DataExtended"
,
"TimeStamp"
,
time_stamp
,
block
);
msg
->
getF32
(
"DataExtended"
,
"MonoScore"
,
mono_score
,
block
);
msg
->
getF32
(
"DataExtended"
,
"MonoScore"
,
mono_score
,
block
);
msg
->
getS32
(
"DataExtended"
,
"PublicURLs"
,
public_urls
,
block
);
msg
->
getS32
(
"DataExtended"
,
"PublicURLs"
,
public_urls
,
block
);
if
(
msg
->
getSize
(
"DataExtended"
,
"ParcelName"
)
>
0
)
{
msg
->
getString
(
"DataExtended"
,
"ParcelName"
,
parcel_buf
,
block
);
msg
->
getF32
(
"DataExtended"
,
"Size"
,
script_memory
,
block
);
}
}
}
LLSD
element
;
LLSD
element
;
...
@@ -193,13 +201,14 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
...
@@ -193,13 +201,14 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
element
[
"id"
]
=
task_id
;
element
[
"id"
]
=
task_id
;
LLSD
columns
;
LLSD
columns
;
columns
[
0
][
"column"
]
=
"score"
;
S32
column_num
=
0
;
columns
[
0
][
"value"
]
=
llformat
(
"%0.3f"
,
score
);
columns
[
column_num
][
"column"
]
=
"score"
;
columns
[
0
][
"font"
]
=
"SANSSERIF"
;
columns
[
column_num
][
"value"
]
=
llformat
(
"%0.3f"
,
score
);
columns
[
column_num
++
][
"font"
]
=
"SANSSERIF"
;
columns
[
1
][
"column"
]
=
"name"
;
columns
[
column_num
][
"column"
]
=
"name"
;
columns
[
1
][
"value"
]
=
name_buf
;
columns
[
column_num
][
"value"
]
=
name_buf
;
columns
[
1
][
"font"
]
=
"SANSSERIF"
;
columns
[
column_num
++
][
"font"
]
=
"SANSSERIF"
;
// Owner names can have trailing spaces sent from server
// Owner names can have trailing spaces sent from server
LLStringUtil
::
trim
(
owner_buf
);
LLStringUtil
::
trim
(
owner_buf
);
...
@@ -215,28 +224,33 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
...
@@ -215,28 +224,33 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
// ...just strip out legacy "Resident" name
// ...just strip out legacy "Resident" name
owner_buf
=
LLCacheName
::
cleanFullName
(
owner_buf
);
owner_buf
=
LLCacheName
::
cleanFullName
(
owner_buf
);
}
}
columns
[
2
][
"column"
]
=
"owner"
;
columns
[
column_num
][
"column"
]
=
"owner"
;
columns
[
2
][
"value"
]
=
owner_buf
;
columns
[
column_num
][
"value"
]
=
owner_buf
;
columns
[
2
][
"font"
]
=
"SANSSERIF"
;
columns
[
column_num
++
][
"font"
]
=
"SANSSERIF"
;
columns
[
column_num
][
"column"
]
=
"location"
;
columns
[
column_num
][
"value"
]
=
llformat
(
"<%0.1f,%0.1f,%0.1f>"
,
location_x
,
location_y
,
location_z
);
columns
[
column_num
++
][
"font"
]
=
"SANSSERIF"
;
columns
[
column_num
][
"column"
]
=
"parcel"
;
columns
[
column_num
][
"value"
]
=
parcel_buf
;
columns
[
column_num
++
][
"font"
]
=
"SANSSERIF"
;
columns
[
3
][
"column"
]
=
"location"
;
columns
[
column_num
][
"column"
]
=
"time"
;
columns
[
3
][
"value"
]
=
llformat
(
"<%0.1f,%0.1f,%0.1f>"
,
location_x
,
location_y
,
location_z
);
columns
[
column_num
][
"type"
]
=
"date"
;
columns
[
3
][
"font"
]
=
"SANSSERIF"
;
columns
[
column_num
][
"value"
]
=
LLDate
((
time_t
)
time_stamp
);
columns
[
4
][
"column"
]
=
"time"
;
columns
[
column_num
++
][
"font"
]
=
"SANSSERIF"
;
columns
[
4
][
"type"
]
=
"date"
;
columns
[
4
][
"value"
]
=
LLDate
((
time_t
)
time_stamp
);
columns
[
4
][
"font"
]
=
"SANSSERIF"
;
if
(
mCurrentMode
==
STAT_REPORT_TOP_SCRIPTS
if
(
mCurrentMode
==
STAT_REPORT_TOP_SCRIPTS
&&
have_extended_data
)
&&
have_extended_data
)
{
{
columns
[
5
][
"column"
]
=
"m
ono_time
"
;
columns
[
column_num
][
"column"
]
=
"m
emory
"
;
columns
[
5
][
"value"
]
=
llformat
(
"%0.
3
f"
,
mono_score
);
columns
[
column_num
][
"value"
]
=
llformat
(
"%0.
0
f"
,
(
script_memory
/
1000.
f
)
);
columns
[
5
][
"font"
]
=
"SANSSERIF"
;
columns
[
column_num
++
][
"font"
]
=
"SANSSERIF"
;
columns
[
6
][
"column"
]
=
"URLs"
;
columns
[
column_num
][
"column"
]
=
"URLs"
;
columns
[
6
][
"value"
]
=
llformat
(
"%d"
,
public_urls
);
columns
[
column_num
][
"value"
]
=
llformat
(
"%d"
,
public_urls
);
columns
[
6
][
"font"
]
=
"SANSSERIF"
;
columns
[
column_num
++
][
"font"
]
=
"SANSSERIF"
;
}
}
element
[
"columns"
]
=
columns
;
element
[
"columns"
]
=
columns
;
list
->
addElement
(
element
);
list
->
addElement
(
element
);
...
@@ -260,7 +274,6 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
...
@@ -260,7 +274,6 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
{
{
setTitle
(
getString
(
"top_scripts_title"
));
setTitle
(
getString
(
"top_scripts_title"
));
list
->
setColumnLabel
(
"score"
,
getString
(
"scripts_score_label"
));
list
->
setColumnLabel
(
"score"
,
getString
(
"scripts_score_label"
));
list
->
setColumnLabel
(
"mono_time"
,
getString
(
"scripts_mono_time_label"
));
LLUIString
format
=
getString
(
"top_scripts_text"
);
LLUIString
format
=
getString
(
"top_scripts_text"
);
format
.
setArg
(
"[COUNT]"
,
llformat
(
"%d"
,
total_count
));
format
.
setArg
(
"[COUNT]"
,
llformat
(
"%d"
,
total_count
));
...
@@ -271,7 +284,8 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
...
@@ -271,7 +284,8 @@ void LLFloaterTopObjects::handleReply(LLMessageSystem *msg, void** data)
{
{
setTitle
(
getString
(
"top_colliders_title"
));
setTitle
(
getString
(
"top_colliders_title"
));
list
->
setColumnLabel
(
"score"
,
getString
(
"colliders_score_label"
));
list
->
setColumnLabel
(
"score"
,
getString
(
"colliders_score_label"
));
list
->
setColumnLabel
(
"mono_time"
,
""
);
list
->
setColumnLabel
(
"URLs"
,
""
);
list
->
setColumnLabel
(
"memory"
,
""
);
LLUIString
format
=
getString
(
"top_colliders_text"
);
LLUIString
format
=
getString
(
"top_colliders_text"
);
format
.
setArg
(
"[COUNT]"
,
llformat
(
"%d"
,
total_count
));
format
.
setArg
(
"[COUNT]"
,
llformat
(
"%d"
,
total_count
));
getChild
<
LLUICtrl
>
(
"title_text"
)
->
setValue
(
LLSD
(
format
));
getChild
<
LLUICtrl
>
(
"title_text"
)
->
setValue
(
LLSD
(
format
));
...
...
This diff is collapsed.
Click to expand it.
indra/newview/skins/default/xui/en/floater_top_objects.xml
+
14
−
14
View file @
c52a8783
...
@@ -22,10 +22,6 @@
...
@@ -22,10 +22,6 @@
name=
"scripts_score_label"
>
name=
"scripts_score_label"
>
Time
Time
</floater.string>
</floater.string>
<floater.string
name=
"scripts_mono_time_label"
>
Mono Time
</floater.string>
<floater.string
<floater.string
name=
"top_colliders_title"
>
name=
"top_colliders_title"
>
Top Colliders
Top Colliders
...
@@ -68,31 +64,35 @@
...
@@ -68,31 +64,35 @@
<scroll_list.columns
<scroll_list.columns
label=
"Score"
label=
"Score"
name=
"score"
name=
"score"
width=
"
5
5"
/>
width=
"
4
5"
/>
<scroll_list.columns
<scroll_list.columns
label=
"Name"
label=
"Name"
name=
"name"
name=
"name"
width=
"1
4
0"
/>
width=
"1
3
0"
/>
<scroll_list.columns
<scroll_list.columns
label=
"Owner"
label=
"Owner"
name=
"owner"
name=
"owner"
width=
"10
5
"
/>
width=
"10
0
"
/>
<scroll_list.columns
<scroll_list.columns
label=
"Location"
label=
"Location"
name=
"location"
name=
"location"
width=
"130"
/>
width=
"120"
/>
<scroll_list.columns
label=
"Parcel"
name=
"parcel"
width=
"120"
/>
<scroll_list.columns
<scroll_list.columns
label=
"Time"
label=
"Time"
name=
"time"
name=
"time"
width=
"150"
/>
width=
"130"
/>
<scroll_list.columns
label=
"Mono Time"
name=
"mono_time"
width=
"100"
/>
<scroll_list.columns
<scroll_list.columns
label=
"URLs"
label=
"URLs"
name=
"URLs"
name=
"URLs"
width=
"100"
/>
width=
"40"
/>
<scroll_list.columns
label=
"Memory (KB)"
name=
"memory"
width=
"40"
/>
<scroll_list.commit_callback
<scroll_list.commit_callback
function=
"TopObjects.CommitObjectsList"
/>
function=
"TopObjects.CommitObjectsList"
/>
</scroll_list>
</scroll_list>
...
...
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