MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / onMemSize

Method onMemSize

src/app/cmd_sequence.cpp:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49size_t CmdSequence::onMemSize() const
50{
51 size_t size = sizeof(*this);
52
53 for (auto it = m_cmds.begin(), end=m_cmds.end(); it!=end; ++it)
54 size += (*it)->memSize();
55
56 return size;
57}
58
59void CmdSequence::executeAndAdd(Cmd* cmd)
60{

Callers

nothing calls this directly

Calls 3

memSizeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected