Changeset 490cb3c
- Timestamp:
- Apr 26, 2019, 2:33:04 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 38c0fe5
- Parents:
- e2862d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Jenkinsfile
re2862d3 r490cb3c 165 165 } 166 166 167 CompileGroup = new PlotGroup('Compilation', 'seconds', true) 168 ConcurrencyGroup = new PlotGroup('Concurrency', 'nanoseconds', false) 169 167 170 def publish() { 168 171 build_stage('Publish') { … … 175 178 176 179 //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') 184 187 } 185 188 } … … 292 295 public String GitOldRef 293 296 294 BuildSettings(java.util.Collections$UnmodifiableMap param, String branch , String number) {297 BuildSettings(java.util.Collections$UnmodifiableMap param, String branch) { 295 298 switch( param.Compiler ) { 296 299 case 'gcc-6': … … 329 332 330 333 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}" 332 335 333 336 this.DescLong = """Compiler : ${ this.Compiler.name } (${ this.Compiler.CXX }/${ this.Compiler.CC }) … … 343 346 this.GitNewRef = '' 344 347 this.GitOldRef = '' 348 } 349 } 350 351 class 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 345 360 } 346 361 } … … 394 409 checkout scm 395 410 396 final settings = new BuildSettings(params, env.BRANCH_NAME , env.BUILD_NUMBER)411 final settings = new BuildSettings(params, env.BRANCH_NAME) 397 412 398 413 currentBuild.description = settings.DescShort … … 423 438 } 424 439 425 def do_plot(String file, Stringgroup, String title) {440 def do_plot(String file, PlotGroup group, String title) { 426 441 echo "file is ${BuildDir}/benchmark/${file}.csv, group ${group}, title ${title}" 427 442 dir("${BuildDir}/benchmark/") { … … 434 449 url: '' 435 450 ]], 436 group: "${group }",451 group: "${group.name}", 437 452 title: "${title}", 438 453 style: 'lineSimple', 439 454 exclZero: false, 440 455 keepRecords: false, 441 logarithmic: true,456 logarithmic: group.log, 442 457 numBuilds: '120', 443 458 useDescr: true, 444 yaxis: '',459 yaxis: group.unit, 445 460 yaxisMaximum: '', 446 461 yaxisMinimum: ''
Note: See TracChangeset
for help on using the changeset viewer.