Get the memory size allocated for an work objectg

How to get the memory size for pyWorkPage in an activity? Tried the solution here How to get size of a specific page in bytes or KB using activity but tools.estimatePageDataSize doesn’t seems to be a valid method.

  1. Performance (PAL) Tool → Add a reading with Clipboard Size to monitor clipboard memory usage.
  2. Admin Studio → Resources → Requestors → Analyze Clipboard to inspect clipboard/page sizes and identify large pages

Pegasystems Documentation

Thanks Ramesh. But my question is to get the size of a page in an activity and put it in a log. I would assume to use a Java step but not able to find the appropriate method to call.