sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/engine/statistic/AllocInfo.java
changeset 1 1050670c6980
child 6 f65f740e69f9
equal deleted inserted replaced
0:5ad7ad99af01 1:1050670c6980
       
     1 /*
       
     2  * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:  Definitions for the class AllocInfo
       
    15  *
       
    16  */
       
    17 package com.nokia.s60tools.analyzetool.engine.statistic;
       
    18 
       
    19 
       
    20 
       
    21 /**
       
    22  * Class holds information of one memory allocation
       
    23  * @author kihe
       
    24  *
       
    25  */
       
    26 public class AllocInfo extends BaseInfo {
       
    27 
       
    28 	private FreeInfo freedBy = null;
       
    29 
       
    30 	/**
       
    31 	 * set this allocation as freed by the provide FreeInfo
       
    32 	 * @param info
       
    33 	 */
       
    34 	public void setFreedBy(FreeInfo info) {
       
    35 		this.freedBy  =info;
       
    36 	}
       
    37 	
       
    38 	/**
       
    39 	 * get the FreeInfo that freed this allocation
       
    40 	 * @return a FreeInfo or null
       
    41 	 */
       
    42 	public FreeInfo getFreedBy() {
       
    43 		return this.freedBy;
       
    44 	}
       
    45 
       
    46 	/**
       
    47 	 * is this allocation freed
       
    48 	 * @return boolean true/false
       
    49 	 */
       
    50 	public boolean isFreed() {
       
    51 		return this.freedBy != null;
       
    52 	}
       
    53 }