00001 package edu.rice.cs.hpc.traceviewer.data.db; 00002 00003 /*** 00004 * struct trace record 00005 * 00006 * 00007 */ 00008 public class DataRecord { 00009 public long timestamp; 00010 public int cpId; 00011 public int metricId; 00012 00013 public DataRecord(long _timestamp, int _cpId, int _metricId) { 00014 this.timestamp = _timestamp; 00015 this.cpId = _cpId; 00016 this.metricId = _metricId; 00017 } 00018 @Override 00019 public String toString() { 00020 return String.format("Time: %d, Call Path ID: %d, Metric ID: %d", timestamp, cpId, metricId); 00021 } 00022 00023 }