analyzetool/commandlineengine/inc/catalloc.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 16:17:58 +0300
branchRCL_3
changeset 59 8ad140f3dd41
parent 49 7fdc9a71d314
permissions -rw-r--r--
Revision: 201039 Kit: 201041

/*
* Copyright (c) 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: Defines CATAlloc class.
*
*/


#ifndef __CATALLOC_H__
#define __CATALLOC_H__

#include "../inc/ATCommonDefines.h"

/**
* Class representing single memory allocation.
*/
class CATAlloc
{
public:
	/**
	* Constructor.
	*/
	CATAlloc() : m_iCSCount(0) {}

	/**
	* Destructor.
	*/
	~CATAlloc(){}

	/**
	* Get alloc string after address, it contains:
	* time, size, call stack..
	* @return string allocation string
	*/
	string GetAllocString();

	// Members

	string m_sTime; /** Allocation time */

	string m_sSize; /** Allocation size */

	unsigned long m_iCSCount; /** Call stack address count */

	map<unsigned long,string> m_vCallStack; /** Call stack where packet number is key */
	
};
#endif
//EOF