diff options
author | Alex Light <allight@google.com> | 2019-11-25 14:55:10 -0800 |
---|---|---|
committer | Treehugger Robot <treehugger-gerrit@google.com> | 2019-12-02 16:57:13 +0000 |
commit | 26dbdcf69175ec3329ba8269b9a58b8d38862ecd (patch) | |
tree | 679c2b41041c525074c22803ce0dc5bd16f2c9be /compiler/optimizing/graph_visualizer.cc | |
parent | 4e7dd70e3ee7a25089bed791df8865966cb4b837 (diff) |
Make fieldcount agent handle duplicates
If multiple instances point to the same object it would be counted
multiple times by libfieldcount. This fixes that so each instance of
an object being pointed to by a field is only counted once.
Test: Manual
Test: ./art/tools/jvmti-agents/field-counts/count-fields.py 'Ldalvik/system/ClassExt;.instanceJfieldIDs:Ljava/lang/Object;' 'Ldalvik/system/ClassExt;.staticJfieldIDs:Ljava/lang/Object;' 'Ldalvik/system/ClassExt;.jmethodIDs:Ljava/lang/Object;'
Change-Id: I1d6c5fe05b628ea8382633041be914373d7298d4
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions