Added title to FlameGraph.

This commit is contained in:
VCB Ferreira
2026-08-02 17:18:25 +02:00
parent b7e47480bb
commit 08bb8f05c7
2 changed files with 3 additions and 5 deletions
+1 -4
View File
@@ -1,4 +1,4 @@
#ifndef CELLS_H #fndef CELLS_H
#define CELLS_H #define CELLS_H
#include <array> #include <array>
@@ -123,9 +123,6 @@ CellLocation<dim> CellLocator<dim>::locate(const Point<dim> &p) const {
typename Triangulation<dim>::cell_iterator cell = base_cells[idx]; typename Triangulation<dim>::cell_iterator cell = base_cells[idx];
xi = xi_local; xi = xi_local;
// Step 4: continue descending only through ADAPTIVE refinement beyond
// the base level -- this loop now only runs `depth - base_level` times
// instead of `depth` times.
while (cell->has_children()) { while (cell->has_children()) {
const unsigned int child_index = const unsigned int child_index =
GeometryInfo<dim>::child_cell_from_point(xi); GeometryInfo<dim>::child_cell_from_point(xi);
+2 -1
View File
@@ -12,6 +12,7 @@ BINARY="./build/nufi_poisson"
FLAMEGRAPH_DIR="${HOME}/.local/bin/FlameGraph" FLAMEGRAPH_DIR="${HOME}/.local/bin/FlameGraph"
OUT_DIR="./results/perf" OUT_DIR="./results/perf"
PERF_FREQ=99 PERF_FREQ=99
TITLE="${FLAMEGRAPH_TITLE:-NuFI-deal.II FlameGraph}"
# ---- checks ------------------------------------------------------------- # ---- checks -------------------------------------------------------------
if [[ ! -x "${BINARY}" ]]; then if [[ ! -x "${BINARY}" ]]; then
@@ -77,7 +78,7 @@ echo "==> Collapsing stacks ..."
"${FLAMEGRAPH_DIR}/stackcollapse-perf.pl" "${PERF_SCRIPT_OUT}" > "${FOLDED_OUT}" "${FLAMEGRAPH_DIR}/stackcollapse-perf.pl" "${PERF_SCRIPT_OUT}" > "${FOLDED_OUT}"
echo "==> Building flamegraph ..." echo "==> Building flamegraph ..."
"${FLAMEGRAPH_DIR}/flamegraph.pl" "${FOLDED_OUT}" > "${FLAMEGRAPH_OUT}" "${FLAMEGRAPH_DIR}/flamegraph.pl" --title="${TITLE}" "${FOLDED_OUT}" > "${FLAMEGRAPH_OUT}"
echo "==> Done." echo "==> Done."
echo " perf.data : ${PERF_DATA}" echo " perf.data : ${PERF_DATA}"