Direct Retrieval of Node Sampling Statistics
You can directly retrieve node sampling information, by using the Node class getObjectCaches method to retrieve recorded node sampling values relating to cache activity or the Process class getRequestStatistics method to retrieve recorded node sampling values relating to the current process.
For more details, see "Getting Cache Activity Information" and "Process::getRequestStatistics Method", earlier in this chapter.