sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/engine/statistic/AllocCallstack.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 AllocCallstack
       
    15  *
       
    16  */
       
    17 package com.nokia.s60tools.analyzetool.engine.statistic;
       
    18 
       
    19 /**
       
    20  * Contains information of allocation callstack item.
       
    21  * @author kihe
       
    22  *
       
    23  */
       
    24 public class AllocCallstack {
       
    25 
       
    26 	/** Callstack memory address */
       
    27 	Long memoryAddress;
       
    28 
       
    29 	/** Dll name where this callstack belongs*/
       
    30 	DllLoad dllLoad;
       
    31 
       
    32 	/**
       
    33 	 * Returns memory address.
       
    34 	 * @return Memory address
       
    35 	 */
       
    36 	public Long getMemoryAddress() {
       
    37 		return memoryAddress;
       
    38 	}
       
    39 
       
    40 	/**
       
    41 	 * Sets memory address
       
    42 	 * @param newMemoryAddress Memory address
       
    43 	 */
       
    44 	public void setMemoryAddress(String newMemoryAddress) {
       
    45 		Long iValue = Long.parseLong(newMemoryAddress,16);
       
    46 		this.memoryAddress = iValue;
       
    47 	}
       
    48 
       
    49 	/**
       
    50 	 * Set dll load item for current allocation callstack item
       
    51 	 * @param loadItem Dll load item
       
    52 	 */
       
    53 	public void setDllLoad(DllLoad loadItem)
       
    54 	{
       
    55 		dllLoad = loadItem;
       
    56 	}
       
    57 
       
    58 	/**
       
    59 	 * Returns Dll load item
       
    60 	 * @return Dll load item
       
    61 	 */
       
    62 	public DllLoad getDllLoad()
       
    63 	{
       
    64 		return dllLoad;
       
    65 	}
       
    66 }