Changeset 490cb3c


Ignore:
Timestamp:
Apr 26, 2019, 2:33:04 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, cleanup-dtors, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
38c0fe5
Parents:
e2862d3
Message:

Some improvements on plots to be correct for both fine grain concurrency and compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    re2862d3 r490cb3c  
    165165}
    166166
     167CompileGroup = new PlotGroup('Compilation', 'seconds', true)
     168ConcurrencyGroup = new PlotGroup('Concurrency', 'nanoseconds', false)
     169
    167170def publish() {
    168171        build_stage('Publish') {
     
    175178
    176179                //Then publish the results
    177                 do_plot('compile', 'Compilation', 'Compilation')
    178 
    179                 do_plot('ctxswitch', 'Concurrency', 'Context Switching')
    180 
    181                 do_plot('mutex', 'Concurrency', 'Mutual Exclusion')
    182 
    183                 do_plot('signal', 'Concurrency', 'Internal and External Scheduling')
     180                do_plot('compile', CompilationGroup, 'Compilation')
     181
     182                do_plot('ctxswitch', ConcurrencyGroup, 'Context Switching')
     183
     184                do_plot('mutex', ConcurrencyGroup, 'Mutual Exclusion')
     185
     186                do_plot('signal', ConcurrencyGroup, 'Internal and External Scheduling')
    184187        }
    185188}
     
    292295        public String GitOldRef
    293296
    294         BuildSettings(java.util.Collections$UnmodifiableMap param, String branch, String number) {
     297        BuildSettings(java.util.Collections$UnmodifiableMap param, String branch) {
    295298                switch( param.Compiler ) {
    296299                        case 'gcc-6':
     
    329332
    330333                def full = param.RunAllTests ? " (Full)" : ""
    331                 this.DescShort = "${number} - ${ this.Compiler.name }:${ this.Architecture.name }${full}"
     334                this.DescShort = "${ this.Compiler.name }:${ this.Architecture.name }${full}"
    332335
    333336                this.DescLong = """Compiler              : ${ this.Compiler.name } (${ this.Compiler.CXX }/${ this.Compiler.CC })
     
    343346                this.GitNewRef = ''
    344347                this.GitOldRef = ''
     348        }
     349}
     350
     351class PlotGroup implements Serializable {
     352        public String name
     353        public String unit
     354        public boolean log
     355
     356        PlotGroup(String name, String unit, boolean log) {
     357                this.name = name
     358                this.unit = unit
     359                this.log = log
    345360        }
    346361}
     
    394409        checkout scm
    395410
    396         final settings = new BuildSettings(params, env.BRANCH_NAME, env.BUILD_NUMBER)
     411        final settings = new BuildSettings(params, env.BRANCH_NAME)
    397412
    398413        currentBuild.description = settings.DescShort
     
    423438}
    424439
    425 def do_plot(String file, String group, String title) {
     440def do_plot(String file, PlotGroup group, String title) {
    426441        echo "file is ${BuildDir}/benchmark/${file}.csv, group ${group}, title ${title}"
    427442        dir("${BuildDir}/benchmark/") {
     
    434449                                url: ''
    435450                        ]],
    436                         group: "${group}",
     451                        group: "${group.name}",
    437452                        title: "${title}",
    438453                        style: 'lineSimple',
    439454                        exclZero: false,
    440455                        keepRecords: false,
    441                         logarithmic: true,
     456                        logarithmic: group.log,
    442457                        numBuilds: '120',
    443458                        useDescr: true,
    444                         yaxis: '',
     459                        yaxis: group.unit,
    445460                        yaxisMaximum: '',
    446461                        yaxisMinimum: ''
Note: See TracChangeset for help on using the changeset viewer.