I am tracking down a memory leak, one avenue of investigation is dynamically-generated assemblies. I can see that our app is generating them but I can't figure out how to work out how much RAM they are using.
I would like to do something like serialize the Assembly
object to a byte[]
to measure the length, but this does not work (the type is not decorated as Seralizable
). The CodeBase
property on dynamic assemblies deliberately throws an exception as there is no file to read into memory.
Does anyone know how to measure the size of a dynamic Assembly?
Aucun commentaire:
Enregistrer un commentaire