mirror of
https://gitee.com/huoyo/ko-time.git
synced 2025-12-06 08:48:30 +08:00
optimize
This commit is contained in:
parent
11894674ad
commit
c4ad932ef6
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>cn.langpy</groupId>
|
||||
<artifactId>ko-time</artifactId>
|
||||
<version>2.2.0</version>
|
||||
<version>2.2.1</version>
|
||||
<name>KoTime</name>
|
||||
<description>A springboot tool for tracking the paths of the methods,which can help you to find methods's performances easily.</description>
|
||||
<licenses>
|
||||
|
||||
@ -7,6 +7,8 @@ import cn.langpy.kotime.model.MethodNode;
|
||||
import cn.langpy.kotime.util.BloomFilter;
|
||||
import cn.langpy.kotime.util.Common;
|
||||
import cn.langpy.kotime.util.Context;
|
||||
import cn.langpy.kotime.util.MethodType;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import java.lang.reflect.Parameter;
|
||||
import java.util.logging.Logger;
|
||||
@ -39,6 +41,10 @@ public final class KoInvokedHandler implements InvokedHandler {
|
||||
|
||||
public MethodNode filter(MethodNode currentNode) {
|
||||
if (BloomFilter.exists(currentNode.getId())) {
|
||||
//allow controllers's routes to be updated
|
||||
if (!StringUtils.isEmpty(currentNode.getRouteName())) {
|
||||
return currentNode;
|
||||
}
|
||||
return null;
|
||||
} else {
|
||||
BloomFilter.add(currentNode.getId());
|
||||
|
||||
@ -177,11 +177,16 @@
|
||||
"title":{'name':"入参组合分析"},
|
||||
"data":datas,
|
||||
'style':{
|
||||
'title-color':'#597772',
|
||||
'border-color':'#597772',
|
||||
'data-font-size':'10px',
|
||||
'title-font-size':'12px'
|
||||
}
|
||||
}
|
||||
graph.createNode(paramGraphData,e.x+150,e.y-30);
|
||||
let clickNodeX = Number(clickNode.getAttribute("x"));
|
||||
let clickNodeY = Number(clickNode.getAttribute("y"));
|
||||
graph.createNode(paramGraphData,clickNodeX,clickNodeY-100);
|
||||
// graph.createNode(paramGraphData,e.x+150,e.y-30);
|
||||
methodParamMap.set(clickNodeId+"ana","")
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user