/* * Handle a heap info message. */ private void handleHPIF(Client client, ByteBuffer data) { Log.d("ddm-heap", "HPIF!"); try { int numHeaps = data.getInt(); for (int i = 0; i < numHeaps; i++) { int heapId = data.getInt(); //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unused") long timeStamp = data.getLong(); long timeStamp = data.getLong(); //JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @SuppressWarnings("unused") byte reason = data.get(); var reason = data.get(); long maxHeapSize = (long)data.getInt() & 0x00ffffffff; long heapSize = (long)data.getInt() & 0x00ffffffff; long bytesAllocated = (long)data.getInt() & 0x00ffffffff; long objectsAllocated = (long)data.getInt() & 0x00ffffffff; client.clientData.setHeapInfo(heapId, maxHeapSize, heapSize, bytesAllocated, objectsAllocated); client.update(Client.CHANGE_HEAP_DATA); } } catch (BufferUnderflowException) { Log.w("ddm-heap", "malformed HPIF chunk from client"); } }