I need to count the number of times a given line of code is hit during execution. I want to use it via debugging tool on my IDE and not a code or performance tool solution.
I am already using YourKit to profile the project, and do not want number of line calls via this tool.
I also do not want to count hits using code (with System.out.print and a variable) because I will be checking the procedure at different branches.
I already checked IntelliJ IDEA help.
Also checked both this posts: Debugging and counting breakpoint hits Counting breakpoint hits
But none of them replies to what I am looking for.
I am currently using IntelliJ's breakpoint options: Log to console .
The way I am using the breakpoint option in IntelliJ I get a log message every time the breakpoint is hit, and then I have to count the number of messages.
I would like to get an actual number of hits so I do not have to count messages.
If anyone knows a simple direct solution to achieving this via IntelliJ I really appreciate. Thanks in advance.







