sysperfana/analyzetoolext/com.nokia.s60tools.analyzetool/src/com/nokia/s60tools/analyzetool/engine/statistic/AllocCallstack.java
changeset 6 f65f740e69f9
parent 1 1050670c6980
child 15 0367d2db2c06
equal deleted inserted replaced
5:844b047e260d 6:f65f740e69f9
     1 /*
     1 /*
     2  * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2  * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     3  * All rights reserved.
     3  * All rights reserved.
     4  * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5  * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6  * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    12  * Contributors:
    12  * Contributors:
    13  *
    13  *
    14  * Description:  Definitions for the class AllocCallstack
    14  * Description:  Definitions for the class AllocCallstack
    15  *
    15  *
    16  */
    16  */
       
    17 
    17 package com.nokia.s60tools.analyzetool.engine.statistic;
    18 package com.nokia.s60tools.analyzetool.engine.statistic;
    18 
    19 
    19 /**
    20 /**
    20  * Contains information of allocation callstack item.
    21  * Contains information of allocation callstack item.
    21  * @author kihe
    22  * @author kihe
    22  *
    23  *
    23  */
    24  */
    24 public class AllocCallstack {
    25 public class AllocCallstack {
    25 
    26 
    26 	/** Callstack memory address */
    27 	/** Callstack memory address */
    27 	Long memoryAddress;
    28 	long memoryAddress;
    28 
    29 
    29 	/** Dll name where this callstack belongs*/
    30 	/** Dll name where this callstack belongs*/
    30 	DllLoad dllLoad;
    31 	DllLoad dllLoad;
    31 
    32 
    32 	/**
    33 	/**
    33 	 * Returns memory address.
    34 	 * Constructor
    34 	 * @return Memory address
    35 	 * @param newMemoryAddress the memory address for this allocation
    35 	 */
    36 	 */
    36 	public Long getMemoryAddress() {
    37 	public AllocCallstack(String newMemoryAddress) {
    37 		return memoryAddress;
    38 		this.memoryAddress = Long.parseLong(newMemoryAddress,16);
    38 	}
    39 	}
    39 
    40 
    40 	/**
    41 	/**
    41 	 * Sets memory address
    42 	 * Returns memory address as decimal value.
    42 	 * @param newMemoryAddress Memory address
    43 	 * @return Memory address
    43 	 */
    44 	 */
    44 	public void setMemoryAddress(String newMemoryAddress) {
    45 	public long getMemoryAddress() {
    45 		Long iValue = Long.parseLong(newMemoryAddress,16);
    46 		return memoryAddress;
    46 		this.memoryAddress = iValue;
       
    47 	}
    47 	}
    48 
    48 
    49 	/**
    49 	/**
    50 	 * Set dll load item for current allocation callstack item
    50 	 * Set dll load item for current allocation callstack item
    51 	 * @param loadItem Dll load item
    51 	 * @param loadItem Dll load item