mirror of
https://github.com/NixOS/nix
synced 2025-07-02 17:41:48 +02:00
Add environment variable NIX_SHOW_SYMBOLS for dumping the symbol table
This commit is contained in:
parent
41ba5135e0
commit
bb6e6923f2
2 changed files with 13 additions and 0 deletions
|
@ -75,6 +75,13 @@ public:
|
|||
}
|
||||
|
||||
size_t totalSize() const;
|
||||
|
||||
template<typename T>
|
||||
void dump(T callback)
|
||||
{
|
||||
for (auto & s : symbols)
|
||||
callback(s);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue