[Nfd-dev] [EXT] NFD Profiling tool

Davide Pesavento davidepesa at gmail.com
Thu Dec 30 15:45:16 PST 2021


Ahmed,

Block::~Block() doesn't create anything. It's the destructor of the
C++ class "Block", which represents a TLV element in memory. The time
spent in the destructor probably includes memory deallocation. Memory
management in the ndn-cxx library has never been seriously optimized,
so I'm not surprised that this shows up in the profiling results.

Best regards,
Davide

On Mon, Dec 27, 2021 at 3:25 PM Ahmed Taffal <a.taffal96 at gmail.com> wrote:
>
> And for NFD profiling, I used gprof and as you can see in the picture below, the ndn::Block::~Block() function is the highest time consuming which is used to create an invalid block as mentioned in the ndn-cxx documentation, so I wonder what exactly they mean by invalid block.
>
> Regards,
>


More information about the Nfd-dev mailing list