sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.graphicsmemory/src/com/nokia/carbide/cpp/pi/graphicsmemory/GraphicsMemoryProcess.java
changeset 12 ae255c9aa552
equal deleted inserted replaced
11:5b9d4d8641ce 12:ae255c9aa552
       
     1 /*
       
     2  * Copyright (c) 2010 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.graphicsmemory;
       
    19 
       
    20 import com.nokia.carbide.cpp.internal.pi.model.GenericThread;
       
    21 
       
    22 public class GraphicsMemoryProcess extends GenericThread {
       
    23 	private static final long serialVersionUID = -3170239590768930245L;
       
    24 
       
    25 	// name to be shown for the process
       
    26 	transient public String fullName;
       
    27 
       
    28 	// maximum memory usage of process within the current time interval
       
    29 	transient public MaxGraphicsMemoryItem maxMemoryItem;
       
    30 
       
    31 	// remember whether the process is enabled for the given graph
       
    32 	transient public boolean[] enabled;
       
    33 
       
    34 	public GraphicsMemoryProcess(Integer processId, String processName) {
       
    35 		this.processId = processId;
       
    36 		this.processName = processName;
       
    37 	}
       
    38 
       
    39 	// get whether the process is enabled for the given graph
       
    40 	public boolean isEnabled(int graphIndex) {
       
    41 		return this.enabled[graphIndex];
       
    42 	}
       
    43 
       
    44 	// set whether the process is enabled for the given graph
       
    45 	public void setEnabled(int graphIndex, boolean enabled) {
       
    46 		this.enabled[graphIndex] = enabled;
       
    47 	}
       
    48 }