sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.memory/src/com/nokia/carbide/cpp/pi/memory/MemSample.java
changeset 2 b9ab3b238396
child 5 844b047e260d
equal deleted inserted replaced
1:1050670c6980 2:b9ab3b238396
       
     1 /*
       
     2  * Copyright (c) 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 the License "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: 
       
    15  *
       
    16  */
       
    17 
       
    18 package com.nokia.carbide.cpp.pi.memory;
       
    19 
       
    20 import com.nokia.carbide.cpp.internal.pi.model.GenericSample;
       
    21 
       
    22 
       
    23 public class MemSample extends GenericSample
       
    24 {
       
    25 	private static final long serialVersionUID = 5829017896307372969L;
       
    26 	
       
    27 	public MemThread thread;
       
    28 	public int heapSize;
       
    29 	public int stackSize;
       
    30 	public int sampleNum;
       
    31 	public int type;
       
    32 	
       
    33 	
       
    34 	public MemSample(MemThread thread, int heapSize, int stackSize, int sampleTime)
       
    35 	{
       
    36 		this.thread = thread;
       
    37 		this.heapSize = heapSize;
       
    38 		this.stackSize = stackSize;
       
    39 		this.sampleNum = sampleTime;
       
    40 		this.sampleSynchTime = sampleTime;
       
    41 	}
       
    42 	
       
    43 	
       
    44 	public MemSample(MemThread thread, int heapSize, int stackSize, int sampleNum, int type)
       
    45 	{
       
    46 		this.thread = thread;
       
    47 		this.heapSize = heapSize;
       
    48 		this.stackSize = stackSize;
       
    49 		this.sampleNum = sampleNum;
       
    50 		this.type = type;
       
    51 		this.sampleSynchTime = sampleNum;
       
    52 	}
       
    53 }