This commit is contained in:
huoyo 2022-06-07 14:10:22 +08:00
parent 11894674ad
commit c4ad932ef6
3 changed files with 13 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.langpy</groupId> <groupId>cn.langpy</groupId>
<artifactId>ko-time</artifactId> <artifactId>ko-time</artifactId>
<version>2.2.0</version> <version>2.2.1</version>
<name>KoTime</name> <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> <description>A springboot tool for tracking the paths of the methods,which can help you to find methods's performances easily.</description>
<licenses> <licenses>

View File

@ -7,6 +7,8 @@ import cn.langpy.kotime.model.MethodNode;
import cn.langpy.kotime.util.BloomFilter; import cn.langpy.kotime.util.BloomFilter;
import cn.langpy.kotime.util.Common; import cn.langpy.kotime.util.Common;
import cn.langpy.kotime.util.Context; import cn.langpy.kotime.util.Context;
import cn.langpy.kotime.util.MethodType;
import org.springframework.util.StringUtils;
import java.lang.reflect.Parameter; import java.lang.reflect.Parameter;
import java.util.logging.Logger; import java.util.logging.Logger;
@ -39,6 +41,10 @@ public final class KoInvokedHandler implements InvokedHandler {
public MethodNode filter(MethodNode currentNode) { public MethodNode filter(MethodNode currentNode) {
if (BloomFilter.exists(currentNode.getId())) { if (BloomFilter.exists(currentNode.getId())) {
//allow controllers's routes to be updated
if (!StringUtils.isEmpty(currentNode.getRouteName())) {
return currentNode;
}
return null; return null;
} else { } else {
BloomFilter.add(currentNode.getId()); BloomFilter.add(currentNode.getId());

View File

@ -177,11 +177,16 @@
"title":{'name':"入参组合分析"}, "title":{'name':"入参组合分析"},
"data":datas, "data":datas,
'style':{ 'style':{
'title-color':'#597772',
'border-color':'#597772',
'data-font-size':'10px', 'data-font-size':'10px',
'title-font-size':'12px' '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","") methodParamMap.set(clickNodeId+"ana","")
}); });
} }