Adding Comments to the Real-time Graph

By calling the method MemProfiler.AddRealTimeComment, comments can be added to the real-time graph of the profiler. The comments will be shown in the graph if the Comments checkbox is checked on the graph page. A comment is shown as a vertical line, including the text that was supplied when calling AddRealTimeComment.

Adding comments can be useful when analyzing the real-time memory usage of certain operations. By adding a comment before and after an operation, it is easy to see how the memory was used during the operation.