Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
SkyWalking
提交
c3a01c86
S
SkyWalking
项目概览
apache
/
SkyWalking
上一次同步 1 年多
通知
302
Star
21345
Fork
6091
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SkyWalking
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c3a01c86
编写于
5月 27, 2016
作者:
A
ascrutae
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
典型调用链节点点击出现详情页
上级
da211633
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
63 addition
and
23 deletion
+63
-23
skywalking-webui/src/main/webapp/bower_components/skywalking/js/analysisResultViewResovler.js
...er_components/skywalking/js/analysisResultViewResovler.js
+6
-1
skywalking-webui/src/main/webapp/pages/anls-result/analysisResult.ftl
...ebui/src/main/webapp/pages/anls-result/analysisResult.ftl
+56
-22
skywalking-webui/src/main/webapp/pages/main.ftl
skywalking-webui/src/main/webapp/pages/main.ftl
+1
-0
未找到文件。
skywalking-webui/src/main/webapp/bower_components/skywalking/js/analysisResultViewResovler.js
浏览文件 @
c3a01c86
...
@@ -81,7 +81,7 @@ AnalysisResultViewResolver.prototype.showTypicalCallTree = function (nodeToken)
...
@@ -81,7 +81,7 @@ AnalysisResultViewResolver.prototype.showTypicalCallTree = function (nodeToken)
var
tmpNode
=
node
.
treeNodes
[
key
];
var
tmpNode
=
node
.
treeNodes
[
key
];
var
analyResultStr
=
$
(
"
#
"
+
key
).
text
();
var
analyResultStr
=
$
(
"
#
"
+
key
).
text
();
if
(
analyResultStr
==
undefined
||
analyResultStr
==
""
)
{
if
(
analyResultStr
==
undefined
||
analyResultStr
==
""
)
{
analyResultStr
=
"
{
\"
totalCall
\"
:0,
\"
totalCostTime
\"
:0,
\"
correctNumber
\"
:0,
\"
humanInterruptionNumber
\"
:0,
\"
correctRate
\"
:
\"
0.00
\"
,
\"
averageCost
\"
:
\"
0.00
\"
}
"
;
continue
;
}
}
tmpNode
.
anlyResult
=
JSON
.
parse
(
analyResultStr
);
tmpNode
.
anlyResult
=
JSON
.
parse
(
analyResultStr
);
tmpTypicalCallChain
.
push
(
tmpNode
);
tmpTypicalCallChain
.
push
(
tmpNode
);
...
@@ -205,6 +205,11 @@ function pickUpViewPoint(nodeToken) {
...
@@ -205,6 +205,11 @@ function pickUpViewPoint(nodeToken) {
$
(
"
#viewPointPickupModal
"
).
modal
(
'
show
'
);
$
(
"
#viewPointPickupModal
"
).
modal
(
'
show
'
);
}
}
function
typicalCallChainTreeViewPointPickUp
(
nodeToken
)
{
$
(
"
#typicalCallTreeViewpointStr
"
).
text
(
$
(
"
#
"
+
nodeToken
+
"
TypicalCallChainViewPoint
"
).
text
());
$
(
"
#typicalCallTreeViewPointPickUpModal
"
).
modal
(
'
show
'
);
}
AnalysisResultViewResolver
.
prototype
.
bindGotoTypicalPageEvent
=
function
()
{
AnalysisResultViewResolver
.
prototype
.
bindGotoTypicalPageEvent
=
function
()
{
var
self
=
this
;
var
self
=
this
;
$
(
"
#showTypicalCallTreeBtn
"
).
click
(
function
()
{
$
(
"
#showTypicalCallTreeBtn
"
).
click
(
function
()
{
...
...
skywalking-webui/src/main/webapp/pages/anls-result/analysisResult.ftl
浏览文件 @
c3a01c86
...
@@ -46,8 +46,6 @@
...
@@ -46,8 +46,6 @@
</table>
</table>
</div>
</div>
<hr/>
<hr/>
</script>
</script>
</#macro>
</#macro>
...
@@ -59,7 +57,7 @@
...
@@ -59,7 +57,7 @@
{{/if}}
{{/if}}
<td>
<td>
<a href="javascript:pickUpViewPoint('{{>nodeToken}}');"> {{>viewPoint}}</a>
<a href="javascript:pickUpViewPoint('{{>nodeToken}}');"> {{>viewPoint}}</a>
<span style="display:none" id="{{>nodeToken}}ViewPoint">{{>viewPoint}}</span>
<span style="display:none" id="{{>nodeToken}}ViewPoint">{{>viewPoint
Str
}}</span>
</div>
</div>
</td>
</td>
<td>{{>anlyResult.totalCall}}</td>
<td>{{>anlyResult.totalCall}}</td>
...
@@ -79,21 +77,24 @@
...
@@ -79,21 +77,24 @@
<span id="{{>nodeToken}}" style="display:none">{{>anlyResultStr}}</span></td>
<span id="{{>nodeToken}}" style="display:none">{{>anlyResultStr}}</span></td>
</tr>
</tr>
</script>
</script>
</#macro>
</#macro>
<#macro viewPointPickUp>
<#macro viewPointPickUp>
<div class="modal fade" id="viewPointPickupModal" tabindex="-1" role="dialog" aria-labelledby="viewPointPickupModal" aria-hidden="true">
<div class="modal fade" id="viewPointPickupModal" tabindex="-1" role="dialog" aria-labelledby="viewPointPickupModal"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-dialog" role="document">
<div class="modal-dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-content">
<div class="modal-header">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title">节点详情</h4>
<h4 class="modal-title">节点详情</h4>
</div>
</div>
<div class="modal-body">
<div class="modal-body">
<div class=
"row">
<div class=
"row">
<div class="col-md-10">
<div class="col-md-10">
<label>viewpoint:</label><br/>
<label>viewpoint:</label><br/>
<span style="word-wrap:break-word;" id="viewpointStr"></span>
<span style="word-wrap:break-word;" id="viewpointStr"></span>
...
@@ -101,13 +102,15 @@
...
@@ -101,13 +102,15 @@
</div>
</div>
</div>
</div>
<div class="modal-footer">
<div class="modal-footer">
<button id="showTypicalCallTreeBtn" type="button" class="btn btn-primary" value="{{>nodeToken}}">查看调用链</button>
<button id="showTypicalCallTreeBtn" type="button" class="btn btn-primary" value="{{>nodeToken}}">
查看调用链
</button>
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</#macro>
</#macro>
<#macro typicalCallChainTrees>
<#macro typicalCallChainTrees>
...
@@ -142,6 +145,7 @@
...
@@ -142,6 +145,7 @@
</div>
</div>
</div>
</div>
<hr/>
<hr/>
</script>
</script>
</#macro>
</#macro>
...
@@ -151,6 +155,7 @@
...
@@ -151,6 +155,7 @@
{{for typicalTreeIds}}
{{for typicalTreeIds}}
<input name="typicalTreeCheckBox" type="checkbox" checked value="{{>callTreeToken}}"/>典型调用链{{: #index}}
<input name="typicalTreeCheckBox" type="checkbox" checked value="{{>callTreeToken}}"/>典型调用链{{: #index}}
{{/for}}
{{/for}}
</script>
</script>
</#macro>
</#macro>
...
@@ -161,7 +166,8 @@
...
@@ -161,7 +166,8 @@
<td rowspan="{{>rowSpanCount}}" valign="middle">{{>traceLevelId}}</td>
<td rowspan="{{>rowSpanCount}}" valign="middle">{{>traceLevelId}}</td>
{{/if}}
{{/if}}
<td>
<td>
<span>{{>viewPoint}}</span>
<a href="javascript:typicalCallChainTreeViewPointPickUp('{{>nodeToken}}');">{{>viewPoint}}</a>
<span style="display:none" id="{{>nodeToken}}TypicalCallChainViewPoint">{{>viewPointStr}}</span>
</td>
</td>
<td>{{>anlyResult.totalCall}}</td>
<td>{{>anlyResult.totalCall}}</td>
<td>{{>anlyResult.correctNumber}}</td>
<td>{{>anlyResult.correctNumber}}</td>
...
@@ -179,7 +185,35 @@
...
@@ -179,7 +185,35 @@
<td>{{>anlyResult.averageCost}}ms
<td>{{>anlyResult.averageCost}}ms
<span id="{{>nodeToken}}" style="display:none">{{>anlyResultStr}}</span></td>
<span id="{{>nodeToken}}" style="display:none">{{>anlyResultStr}}</span></td>
</tr>
</tr>
</script>
</script>
</#macro>
</#macro>
<#macro typicalCallTreeViewPointPickUp>
<div class="modal fade" id="typicalCallTreeViewPointPickUpModal" tabindex="-1" role="dialog" aria-labelledby="typicalCallTreeViewPointPickUpModal"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title">节点详情</h4>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-10">
<label>viewpoint:</label><br/>
<span style="word-wrap:break-word;" id="typicalCallTreeViewpointStr"></span>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">取消</button>
</div>
</div>
</div>
</div>
</div>
</#macro>
skywalking-webui/src/main/webapp/pages/main.ftl
浏览文件 @
c3a01c86
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
<
@
anlyResult.typicalCallChainTreeTable
/>
<
@
anlyResult.typicalCallChainTreeTable
/>
<
@
anlyResult.typicalCallChainCheckBox
/>
<
@
anlyResult.typicalCallChainCheckBox
/>
<
@
anlyResult.viewPointPickUp
/>
<
@
anlyResult.viewPointPickUp
/>
<
@
anlyResult.typicalCallTreeViewPointPickUp
/>
<p
id=
"baseUrl"
style=
"display: none"
>
${_base}
</p>
<p
id=
"baseUrl"
style=
"display: none"
>
${_base}
</p>
<div
class=
"container"
id=
"mainPanel"
>
<div
class=
"container"
id=
"mainPanel"
>
<p
id=
"searchType"
style=
"display: none"
>
${searchType!''}
</p>
<p
id=
"searchType"
style=
"display: none"
>
${searchType!''}
</p>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录