Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

增加trace和watch的复合参数 #40

Closed
Willam2004 opened this issue Sep 17, 2018 · 2 comments
Closed

增加trace和watch的复合参数 #40

Willam2004 opened this issue Sep 17, 2018 · 2 comments
Milestone

Comments

@Willam2004
Copy link

目前trace可以看到耗时,watch能看到入参和出参,希望有个命令即能够看到入参出参,同时能看到耗时?这样可以更方便的定位到底是因为什么参数导致比较慢?

This was referenced Sep 19, 2018
@ralf0131
Copy link
Collaborator

What kind of input and output do you expect to have? Could you give an example?

@Hearen
Copy link
Contributor

Hearen commented Oct 13, 2018

目前trace可以看到耗时,watch能看到入参和出参,希望有个命令即能够看到入参出参,同时能看到耗时?这样可以更方便的定位到底是因为什么参数导致比较慢?

Do you mean something like this:

$ watch -n 3 *Demo addTwoLists "params" -b
Press Ctrl+C to abort.
Affect(class-cnt:1 , method-cnt:1) cost in 216 ms.
ts=2018-10-13 11:08:04; [cost=0.659591ms] result=@Object[][
    @ArrayList[isEmpty=false;size=2],
    @ArrayList[isEmpty=false;size=2],
]
ts=2018-10-13 11:08:04; [cost=0.008653ms] result=@Object[][
    @ArrayList[isEmpty=false;size=2],
    @ArrayList[isEmpty=false;size=2],
]
ts=2018-10-13 11:08:04; [cost=0.010443ms] result=@Object[][
    @ArrayList[isEmpty=false;size=2],
    @ArrayList[isEmpty=false;size=2],
]

Added in #227

@hengyunabc hengyunabc added this to the 3.0.5 milestone Oct 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants