Add elf symbol address helper + pass experiment path to queries
This commit is contained in:
@ -140,7 +140,7 @@ sub execute_query {
|
||||
my $postprocess = $module->can('postprocess')
|
||||
or die "$module can't postprocess()";
|
||||
|
||||
my $querystring = $query->($experiment);
|
||||
my $querystring = $query->($experiment, "$builds_dir/$experiment");
|
||||
my $argsstring = $args->();
|
||||
my $filenamestring = $filename->();
|
||||
|
||||
@ -171,6 +171,13 @@ sub format_number_sep {
|
||||
return $number;
|
||||
}
|
||||
|
||||
sub elf_sym_addr {
|
||||
my ($elffile, $sym) = @_;
|
||||
my $line = qx{nm "$elffile" 2>/dev/null | grep " $sym\$"};
|
||||
return undef unless $line =~ /^([0-9a-f]+)/i;
|
||||
return hex($1);
|
||||
}
|
||||
|
||||
sub elf_read_sections {
|
||||
my ($elffile) = @_;
|
||||
|
||||
|
||||
@ -386,7 +386,7 @@ make_heatmap <- function(target_resulttype, target_benchmark) {
|
||||
xmin = -0.5,
|
||||
xmax = row_width - 0.5,
|
||||
fill = NA,
|
||||
linewidth = 1.0,
|
||||
linewidth = 1.5,
|
||||
inherit.aes = FALSE
|
||||
) +
|
||||
scale_colour_brewer(name = "Region", palette = "Dark2")
|
||||
|
||||
Reference in New Issue
Block a user