Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 208746 - Incorrect counting of "invoked by" column in invocation details
Summary: Incorrect counting of "invoked by" column in invocation details
Status: CLOSED DUPLICATE of bug 197176
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: TPTP (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Valentina Popescu CLA
QA Contact:
URL:
Whiteboard: closed471
Keywords:
Depends on: 197176
Blocks:
  Show dependency tree
 
Reported: 2007-11-05 05:55 EST by Alexander N. Alexeev CLA
Modified: 2016-05-05 11:09 EDT (History)
2 users (show)

See Also:


Attachments
proposed patch (4.61 KB, patch)
2007-11-05 05:59 EST, Alexander N. Alexeev CLA
no flags Details | Diff
proposed patch (remove unused import) (4.54 KB, patch)
2007-11-05 06:37 EST, Alexander N. Alexeev CLA
no flags Details | Diff
screen dump (jpg) (148.86 KB, image/jpeg)
2007-11-05 18:23 EST, Chris Elford CLA
no flags Details
another screen shot (124.26 KB, image/jpeg)
2007-11-05 18:28 EST, Chris Elford CLA
no flags Details
example showing big delta (145.87 KB, image/jpeg)
2007-11-05 20:56 EST, Chris Elford CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander N. Alexeev CLA 2007-11-05 05:55:42 EST
Build ID: 3.3

Steps To Reproduce:
1. Profile Hello application from workbench 
2. use aggregated mode
3. use * * INCLUDE filter
4. after execution go to Execution statistic and select "charAt" method
5. watch Invocation details
6. sum of "Invoked by" column values in middle pane should match to value in column "calls" in upper pane but it doesn't
Comment 1 Alexander N. Alexeev CLA 2007-11-05 05:59:39 EST
Created attachment 82086 [details]
proposed patch

Please, review patch
Alex.
Comment 2 Alexander N. Alexeev CLA 2007-11-05 06:03:56 EST
Comment on attachment 82086 [details]
proposed patch

two issues
- invocations count isn't   taken into account
- parent method calculation  uses incorrect invocation objects
Comment 3 Alexander N. Alexeev CLA 2007-11-05 06:37:22 EST
Created attachment 82087 [details]
proposed patch (remove unused import)
Comment 4 Chris Elford CLA 2007-11-05 13:10:09 EST
adding self to watch list.  I'll compile/test with this patch.
Comment 5 Chris Elford CLA 2007-11-05 18:23:01 EST
Created attachment 82144 [details]
screen dump (jpg)

image showing invocation counts
Comment 6 Chris Elford CLA 2007-11-05 18:28:25 EST
Hi Alex,

  This is looking pretty good.  I'm attaching a screenshot from using it.  Its looking like the bottom frame (this method invokes) still has an issue.  It looks like in some cases the number of times that this method foo() invokes another method bar() is greater than the total number of times that bar() is called.

  See the attached screenshot attached, second to last line java.lang.Class.getname().  For another test with Harmony, I found some examples where this number was dramatically greater than the call count.  I wanted to send an example with Sun though.

  I'm attaching another screenshot that seems to suggest the right number here is supposed to be 5.  I suspect this means there is a typo in the source but I've not had time to go look.

Thx,
Chris

Comment 7 Chris Elford CLA 2007-11-05 18:28:48 EST
Created attachment 82145 [details]
another screen shot
Comment 8 Chris Elford CLA 2007-11-05 20:56:08 EST
Created attachment 82153 [details]
example showing big delta

note that this one most of the "invokes" pane are much much higher than the total call count for the underlying methods...

This is from Harmony M3 running Dacapo Chart
Comment 9 Alexander N. Alexeev CLA 2007-11-08 04:10:54 EST
I add dependency from similar bug, but propose to close it as duplicated and move patch to original (Bug 197176).
Concerns regarding callee column is caused by Bug 208645 and can be considered in its context.  

Please, provide feedback.

Alex.
Comment 10 Chris Elford CLA 2007-11-08 12:00:01 EST
this sounds like a good plan to me.
Thx,
Chris
Comment 11 Alexander N. Alexeev CLA 2007-11-13 03:46:44 EST

*** This bug has been marked as a duplicate of bug 197176 ***
Comment 12 Kathy Chan CLA 2010-11-18 18:56:23 EST
As of TPTP 4.6.0, TPTP is in maintenance mode and focusing on improving quality by resolving relevant enhancements/defects and increasing test coverage through test creation, automation, Build Verification Tests (BVTs), and expanded run-time execution. As part of the TPTP Bugzilla housecleaning process (see http://wiki.eclipse.org/Bugzilla_Housecleaning_Processes), this enhancement/defect is verified/closed by the Project Lead since this enhancement/defect has been resolved and unverified for more than 1 year and considered to be fixed. If this enhancement/defect is still unresolved and reproducible in the latest TPTP release (http://www.eclipse.org/tptp/home/downloads/), please re-open.