private Snapshot createMemorySnapshot ( SnapshotDescriptor descriptor ) { HeapBuffer buffer = HeapBuffer . allocate ( SnapshotDescriptor . BYTES , Integer . MAX_VALUE ) ; Snapshot snapshot = new MemorySnapshot ( buffer , descriptor . copyTo ( buffer ) , this ) ; LOGGER . debug ( "Created memory snapshot: {}" , snapshot ) ; return snapshot ; }
Creates a memory snapshot .