Skip to content
/ coswee Public

show the program call chains intuitively, for costing analyze

License

Notifications You must be signed in to change notification settings

xuqiu/coswee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coswee

show the program call chains intuitively, for costing analyze

  • threads stack detail(times,cost)
  • image
  • call statistics
  • image
  • call from
  • image

How to use

add dependency

    <dependency>
        <groupId>com.github.xuqiu</groupId>
        <artifactId>coswee</artifactId>
    </dependency>
for spring boot case

1, setup application.yml

coswee:
  pointcut: within(com.yourcom..*)

2, boot up you app and visit yoursite/coswee like http://localhost:8080/coswee

for junit case
    @Test
    public void testSynShiftcaseTask(){
        synShiftcaseTask.synShiftcaseTask("SKPT");
        CallChainServlet.writePage("/Users/yinzhennan/temp/tmpPage.html");
    }
for web project case
  • add servlet to web.xml
    <servlet>
        <servlet-name>CosweeServlet</servlet-name>
        <servlet-class>com.github.xuqiu.coswee.servlet.CallChainServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>CosweeServlet</servlet-name>
        <url-pattern>/coswee/*</url-pattern>
    </servlet-mapping>
spring config
    <!-- aop config -->
    <aop:aspectj-autoproxy/>
    <bean id="orderCheckInterceptor" class="com.github.xuqiu.coswee.aspect.CallChainAspect"/>

About

show the program call chains intuitively, for costing analyze

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published