Skip to content

Missing column header in CSV-Export of AnalysisCallTree #4817

@ChristophTF

Description

@ChristophTF

Describe the issue
When exporting the analysis call tree in CSV files, the report file call_tree_virtual_methods*.csv_ misses the last column header "Flags".

Steps to reproduce the issue

  1. native-image HelloWorld -H:+PrintAnalysisCallTree -H:PrintAnalysisCallTreeType=CSV
  2. Look at "call_tree_virtual_methods_helloworld_[date]_[time].csv"

Excerpt from the file "call_tree_virtual_methods_helloworld_[date]_[time].csv":

Id,Name,Type,Parameters,Return,Display
13155,parse,sun.nio.cs.Surrogate$Parser,char java.nio.CharBuffer,int,s.n.c.SP.parse,p

The first line is missing ",Flags"

Code location
The issue is caused by CallTreePrinter.printVirtualNodes(...)

writer.println(convertToCSV("Id", "Name", "Type", "Parameters", "Return", "Display"));

which in contrast to CallTreePrinter.printMethodNodes(...)
writer.println(convertToCSV("Id", "Name", "Type", "Parameters", "Return", "Display", "Flags"));

does not have the Flags header column.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions