Some instrumentation tools supports printing out the gathered data
to a comma separated value (.csv
) file. This makes it easy
to import the raw data with an external spreadsheet program, for
further analyses, calculations and visualizing the data as graphs.
Any Simics object that implements the table
interface
will automatically get the export-table-csv command and
it exist on either the tool for the total, the individual connection
objects, or both. See figure 11 for
an example.
$> ./simics targets/qsp-x86/firststeps.simics num_cores=8 simics> new-instruction-histogram -connect-all [board.mb.cpu0.core[0][0] info] VMP not engaged. Reason: instrumentation enabled. Created ihist0 (connected to 8 processors) simics> run 10 s simics> ihist0.export-table-csv file = all-cpus-10seconds.csv simics> ihist0.con0.export-table-csv file = first-cpu-10seconds.csv simics> quit $> head all-cpus-10seconds.csv mnemonic,Count mov,919169650 add,302311251 cmp,206492934 test,160303832 adc,150848000 jne,144637182 je,133354184 lea,120721026 push,97795399 $> head first-cpu-10seconds.csv mnemonic,Count mov,414052451 add,165503526 cmp,100845317 adc,88820557 test,71309728 jne,70008313 lea,56315642 movzx,54618965 je,52189244