sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/engine/statistic/AllocInfo.java
changeset 1 1050670c6980
child 6 f65f740e69f9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/engine/statistic/AllocInfo.java	Thu Feb 11 15:22:14 2010 +0200
@@ -0,0 +1,53 @@
+/*
+ * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+ * All rights reserved.
+ * This component and the accompanying materials are made available
+ * under the terms of "Eclipse Public License v1.0"
+ * which accompanies this distribution, and is available
+ * at the URL "http://www.eclipse.org/legal/epl-v10.html".
+ *
+ * Initial Contributors:
+ * Nokia Corporation - initial contribution.
+ *
+ * Contributors:
+ *
+ * Description:  Definitions for the class AllocInfo
+ *
+ */
+package com.nokia.s60tools.analyzetool.engine.statistic;
+
+
+
+/**
+ * Class holds information of one memory allocation
+ * @author kihe
+ *
+ */
+public class AllocInfo extends BaseInfo {
+
+	private FreeInfo freedBy = null;
+
+	/**
+	 * set this allocation as freed by the provide FreeInfo
+	 * @param info
+	 */
+	public void setFreedBy(FreeInfo info) {
+		this.freedBy  =info;
+	}
+	
+	/**
+	 * get the FreeInfo that freed this allocation
+	 * @return a FreeInfo or null
+	 */
+	public FreeInfo getFreedBy() {
+		return this.freedBy;
+	}
+
+	/**
+	 * is this allocation freed
+	 * @return boolean true/false
+	 */
+	public boolean isFreed() {
+		return this.freedBy != null;
+	}
+}