|
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.GenericThread; |
|
21 |
|
22 public class MemThread extends GenericThread |
|
23 { |
|
24 private static final long serialVersionUID = 2633643437981913631L; |
|
25 |
|
26 // name to be shown for the thread |
|
27 transient public String fullName; |
|
28 |
|
29 // maximum memory usage of thread/process within the current time interval |
|
30 transient public MaxMemoryItem maxMemoryItem; |
|
31 |
|
32 // remember whether the thread/process is enabled for the given graph |
|
33 transient public boolean[] enabled; |
|
34 |
|
35 public MemThread(Integer threadId, String threadName, String processName) |
|
36 { |
|
37 this.threadId = threadId; |
|
38 this.threadName = threadName; |
|
39 this.processName = processName; |
|
40 } |
|
41 |
|
42 // get whether the thread/process is enabled for the given graph |
|
43 public boolean isEnabled(int graphIndex) |
|
44 { |
|
45 return this.enabled[graphIndex]; |
|
46 } |
|
47 |
|
48 // set whether the thread/process is enabled for the given graph |
|
49 public void setEnabled(int graphIndex, boolean enabled) |
|
50 { |
|
51 this.enabled[graphIndex] = enabled; |
|
52 } |
|
53 } |