Would you please add the following heuristic rules in instrumentation?
When reading a variable, value,
(1) if value is an array, we also get the values of all its elements
(2) if value is ArrayList, we also get the values of all the elements of its elementData field
(3) if value is HashMap, we also get the values of all its value field
I have finished the skeleton, you may just need to fill the code in microbat.instrumentation.runtime.ExecutionTracer.getHeuristicVarChildren(). I have left a TODO comment there. Please feel free to change the method signature if necessary. Many thanks!
hi @lylytran
Would you please add the following heuristic rules in instrumentation?
When reading a variable, value, (1) if value is an array, we also get the values of all its elements (2) if value is ArrayList, we also get the values of all the elements of its elementData field (3) if value is HashMap, we also get the values of all its value field
I have finished the skeleton, you may just need to fill the code in
microbat.instrumentation.runtime.ExecutionTracer.getHeuristicVarChildren()
. I have left a TODO comment there. Please feel free to change the method signature if necessary. Many thanks!