Skip to content

Generalize weight used in dijkstra algorithm #465

Generalize weight used in dijkstra algorithm

Generalize weight used in dijkstra algorithm #465

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-24.04
steps:
- uses: actions/checkout@v3
- name: Install valgrind
run: 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.*