1 /*******************************************************************************
2 * Copyright (c) 2014, 2015 École Polytechnique de Montréal
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Geneviève Bastien - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.internal
.analysis
.os
.linux
.ui
.views
.cpuusage
;
15 import org
.eclipse
.tracecompass
.tmf
.ui
.viewers
.tree
.TmfTreeViewerEntry
;
18 * Represents an entry in the tree viewer of the CPU usage view. An entry is a
19 * thread that occupied part of the CPU in the selected time range.
21 * @author Geneviève Bastien
23 public class CpuUsageEntry
extends TmfTreeViewerEntry
{
24 private final String fTid
;
25 private final String fProcessName
;
26 private final Double fPercent
;
27 private final Long fTime
;
33 * The TID of the process
37 * The percentage CPU usage
39 * The total amount of time spent on CPU
41 public CpuUsageEntry(String tid
, String name
, double percent
, long time
) {
50 * Get the TID of the thread represented by this entry
52 * @return The thread's TID
54 public String
getTid() {
59 * Get the process name
61 * @return The process name
63 public String
getProcessName() {
68 * Get the percentage of time spent on CPU in the time interval represented
71 * @return The percentage of time spent on CPU
73 public Double
getPercent() {
78 * Get the total time spent on CPU in the time interval represented by this
81 * @return The total time spent on CPU
83 public Long
getTime() {
This page took 0.043472 seconds and 5 git commands to generate.