Skip to content

Instantly share code, notes, and snippets.

View jeremymeng's full-sized avatar

Jeremy Meng jeremymeng

View GitHub Profile
@goldshtn
goldshtn / dotnet-mapgen-v2.py
Last active November 11, 2019 15:26
dotnet-mapgen: generates map files for crossgen-compiled assemblies, and merges them into the main perf map file
#!/usr/bin/env python
#
# USAGE: dotnet-mapgen [-h] {generate,merge} PID
#
# In generate mode, this tool reads the /tmp/perfinfo-PID.map file generated
# by the CLR when running with COMPlus_PerfMapEnabled=1, and finds all load
# events for managed assemblies. For each managed assembly found in this way,
# the tool runs crossgen to generate a symbol mapping file (akin to debuginfo).
#
# In merge mode, this tool finds the load address of each managed assembly in