Skip to content

Make Road's transportCapacity attribute a real number #746

Make Road's transportCapacity attribute a real number

Make Road's transportCapacity attribute a real number #746

name: Profile the memory usage of a simulation
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install tools manually
run: sudo apt update && sudo apt install libtbb-dev
- uses: actions/checkout@v4
- name: Install valgrind
run: sudo apt update && sudo apt install -y valgrind
- name: Build test simulation
working-directory: ${{github.workspace}}/profiling
run: cmake -B build && make -C build
- name: Generate the massif file and print report
working-directory: ${{github.workspace}}/profiling
run: |
valgrind --tool=massif ./mem.out
ms_print ./massif.out.*
- name: Get peak and integral of memory usage graph
working-directory: ${{github.workspace}}/profiling
run: ./parse_massif.out massif.out.*