if(min == 0) {
text = "";
} else {
- text = "(" + Formatter.toByteFormatConvertDecimalPrefix(1000 / (min)) + "fps)";
+ text = "(" + Formatter.toByteFormatConvertDecimalPrefix(1000 / min) + "fps)";
}
- text += Formatter.toByteFormatConvertDecimalPrefix(min);
+ text += min;
} else if (plot.getAxisUnitType() == DAChartPlot.UnitType.GL_FPS) {
if (min == 0) {
text = "";
} else {
- text = "(" + Formatter.toByteFormatConvertDecimalPrefix((1000 / min)) + "ms)";
+ text = "(" + Formatter.toByteFormatConvertDecimalPrefix(1000 / min) + "ms)";
}
- text += Formatter.toByteFormatConvertDecimalPrefix(min);
+ text += min;
}
if (null != axisUnit) {
} else {
text = "(" + Formatter.toByteFormatConvertDecimalPrefix(2000 / (min + max)) + "fps)";
}
- text += Formatter.toByteFormatConvertDecimalPrefix((min + max) / 2);
+ text += (min + max) / 2;
} else if (plot.getAxisUnitType() == DAChartPlot.UnitType.GL_FPS) {
if (max == 0) {
text = "";
} else {
text = "(" + Formatter.toByteFormatConvertDecimalPrefix(2000 / (min + max)) + "ms)";
}
- text += Formatter.toByteFormatConvertDecimalPrefix((min + max) / 2);
+ text += (min + max) / 2;
}
if (null != axisUnit) {
text += axisUnit;
if(max == 0) {
text = "";
} else {
- text = "(" + Formatter.toByteFormatConvertDecimalPrefix(1000 / (max)) + "fps)";
+ text = "(" + Formatter.toByteFormatConvertDecimalPrefix(1000 / max) + "fps)";
}
- text += Formatter.toByteFormatConvertDecimalPrefix((max));
+ text += max;
} else if (plot.getAxisUnitType() == DAChartPlot.UnitType.GL_FPS) {
if(max == 0) {
text = "";
} else {
text = "(" + Formatter.toByteFormatConvertDecimalPrefix((1000 / max)) + "ms)";
}
- text += Formatter.toByteFormatConvertDecimalPrefix(max);
+ text += max;
}
if (null != axisUnit) {
text += axisUnit;
private static final String API_GL_VERTEX_ATTRIB_POINTER = "glVertexAttribPointer";
private static final String API_GL_VIEWPORT = "glViewport";
- private static final String API_EGL_SWAPBUFFERS = "_SglSwapBuffers";
+ private static final String API_EGL_SWAPBUFFERS = "eglSwapBuffers";
+ private static final String API_SGL_SWAPBUFFERS = "_SglSwapBuffers";
private static GLDataMaker instance = null;
private static final int CONTEXT_VALUE_SIZE = GLContextDBEnum.values().length;
String seq = String.valueOf(logData.getSeq());
String apiName = logData.getApiName();
String parameter = logData.getArgs();
- System.out.println(apiName + " " + parameter);
long errorNo = logData.getErrno();
//FIXME
- if(apiName.equals(API_EGL_SWAPBUFFERS)) {
+ if(apiName.equals(API_SGL_SWAPBUFFERS)) {
errorNo = 0;
logData.setErrNo(0);
+ logData.setApiName(API_EGL_SWAPBUFFERS);
}
- if(errorNo != 0) {
- System.out.println("00");
- }
-
if (apiType != API_TYPE_INIT) {
glFrameDataList.get(currentFrameIndex).addGLAPIData(
new GLAPIData(logData));
String parameters[] = parameter.split(COMMA + SPACE);
String contextValues[] = logData.getContextValue().split(COMMA);
- if (apiName.equals(API_EGL_SWAPBUFFERS)) {
+ if (apiName.equals(API_SGL_SWAPBUFFERS)) {
GLFrameData currentFrameData = glFrameDataList.get(currentFrameIndex);
int frameNumber = currentFrameData.getFrameNumber();
currentFrameData.getFrametime(),
currentFrameData.hasError());
- GLFrameTimeChart.getInstance().addData(frameNumber,
- currentFrameData.getFrametime(),
+ GLFrameTimeChart.getInstance().addData(
+ frameNumber,
+ currentFrameData.getFrametime()
+ / TimelineConstants.KILO_LONG,
currentFrameData.hasError());
int time = (int) (logData.getTime() / TimelineConstants.MEGA_LONG);