mirror of
https://github.com/NixOS/nix
synced 2025-06-25 14:51:16 +02:00
libexpr: Add nrExprs to NIX_SHOW_STATS
This commit is contained in:
parent
4a8c9bb9aa
commit
3720e811fa
3 changed files with 6 additions and 0 deletions
|
@ -155,6 +155,10 @@ std::string showAttrPath(const SymbolTable & symbols, const AttrPath & attrPath)
|
|||
|
||||
struct Expr
|
||||
{
|
||||
static unsigned long nrExprs;
|
||||
inline Expr() {
|
||||
nrExprs++;
|
||||
}
|
||||
virtual ~Expr() { };
|
||||
virtual void show(const SymbolTable & symbols, std::ostream & str) const;
|
||||
virtual void bindVars(EvalState & es, const std::shared_ptr<const StaticEnv> & env);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue