GEN_PROFILE_MERGE(1)

πŸ“¦
version 0.9.4 Β· 2 versions
, in fedora 43

✨ NAME ✨

okay bestie, gather round πŸ’– this is gen_profile_merge β€” the little icon of the sediment manual, section 1, and it does exactly what it says on the tin: it merges a whole bunch of callgraphs into one single callgraph. periodt.

🌸 DESCRIPTION 🌸

so here's the vibe: gen_profile_merge takes one or more call graph files (.gv, obviously πŸ’…), gives each one a weight, and then smooshes all of them together into a single file. that's it. that's the whole job. and it ate, ngl.

usage goes like this:

gen_profile_merge [options]

πŸŽ€ OPTIONS πŸŽ€

  • -h, --help β€” hands you the short usage message with every supported option listed out. your little map πŸ—ΊοΈβœ¨
  • -w, --weight=<float> β€” sets the weight to <float> for all the input files that come after this option, and it keeps applying until it bumps into another weight option. lowkey important: the default weight is 1.0. so if you don't say anything, everything's weighted 1.0 fr fr.
  • -f, --file=<input_file> β€” names a file to merge with the others. every single file you want in the merge needs its own -f option, no skipping πŸ™ˆ.
  • -o, --output=<output_file> β€” tells it where to write the output. and bestie, you must specify an output file. there is no default. it's giving "required", because it is πŸ’€.
  • -d, --debug β€” dumps extra information to stderr for debugging. > ⚠️ heads up: this one is for the developers and maintainers of the Sediment package, not for normal users. so if that's not you, leave it alone, iykyk.

πŸ¦‹ EXAMPLE πŸ¦‹

here's the moment, the main character energy example:

gen_profile_merge -o merged.gv -w 0.75 -f major_exp.gv -w 0.25 -f minor_exp.gv

see how the weights flip between the files? major_exp.gv gets 0.75, then -w 0.25 switches it up so minor_exp.gv gets 0.25. iconic. chef's kiss πŸ‘‘


πŸ’œ AUTHOR πŸ’œ

William Cohen β€” yes, the whole thing. we stan.

2013, William Cohen


and that's a wrap, bestie 🫢 this was sediment version 0.8, dated Jul 25, 2025, and it lives in section 1 of the manual β€” go forth and merge those callgraphs, you absolute legend πŸŒˆπŸ’–

πŸ“¦ where this page comes from