mirror of
https://codeberg.org/vcbferreira/NuFI_deal.ii
synced 2026-08-12 14:33:18 +02:00
Added title to FlameGraph.
This commit is contained in:
+1
-4
@@ -1,4 +1,4 @@
|
||||
#ifndef CELLS_H
|
||||
#fndef CELLS_H
|
||||
#define CELLS_H
|
||||
|
||||
#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];
|
||||
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()) {
|
||||
const unsigned int child_index =
|
||||
GeometryInfo<dim>::child_cell_from_point(xi);
|
||||
|
||||
@@ -12,6 +12,7 @@ BINARY="./build/nufi_poisson"
|
||||
FLAMEGRAPH_DIR="${HOME}/.local/bin/FlameGraph"
|
||||
OUT_DIR="./results/perf"
|
||||
PERF_FREQ=99
|
||||
TITLE="${FLAMEGRAPH_TITLE:-NuFI-deal.II FlameGraph}"
|
||||
|
||||
# ---- checks -------------------------------------------------------------
|
||||
if [[ ! -x "${BINARY}" ]]; then
|
||||
@@ -77,7 +78,7 @@ echo "==> Collapsing stacks ..."
|
||||
"${FLAMEGRAPH_DIR}/stackcollapse-perf.pl" "${PERF_SCRIPT_OUT}" > "${FOLDED_OUT}"
|
||||
|
||||
echo "==> Building flamegraph ..."
|
||||
"${FLAMEGRAPH_DIR}/flamegraph.pl" "${FOLDED_OUT}" > "${FLAMEGRAPH_OUT}"
|
||||
"${FLAMEGRAPH_DIR}/flamegraph.pl" --title="${TITLE}" "${FOLDED_OUT}" > "${FLAMEGRAPH_OUT}"
|
||||
|
||||
echo "==> Done."
|
||||
echo " perf.data : ${PERF_DATA}"
|
||||
|
||||
Reference in New Issue
Block a user