如何从日志文件制作JMeter输出图? [英] How to make JMeter output graphs from log-file?
问题描述
我需要从应用程序(C,VB等)生成与JMeter相同的图形:
I need to generate the same graphs as JMeter but from my app (C, VB, etc):
我该怎么做?我需要一种计算算法.
How can I do this? I need a calculation algorithm.
我有一个来自JMeter的CSV日志文件,其中包含以下几列:
I have a CSV log-file from JMeter with following columns:
timeStamp,已过去,标签,responseCode,responseMessage,threadName,dataType,成功,字节,grpThreads,allThreads,Latency
timeStamp, elapsed, label, responseCode, responseMessage, threadName, dataType, success, bytes, grpThreads, allThreads, Latency
推荐答案
-
随时间变化的响应时间
-
在一分钟之内将所有行划分为组.为此使用 timeStamp .
从每个组中获取平均值 .这将是Y值.
Get average of elapsed from each group. It will be Y value.
Y值是每个平均值以一分钟为步长的时间.
Y value is a time with one minute step for each average value.
响应时间分布
-
按已用字段对所有行进行排序.
Sort all rows by elapsed field.
对行的值为过去的行在0到100之间进行计数.该计数将为图表的第一列的值.
Count rows with value of elapsed field between 0 and 100. The count will be value of first column of chart.
具有经过字段的值介于100和200之间的行数将是图表第二列的值,依此类推.
A count of rows with value of elapsed field between 100 and 200 will be a value of chart's second column, etc.
响应时间百分比
-
X-从0到100的数字.
X - numbers from 0 to 100.
Y-根据已通过字段的百分数值.
Y - according percentile value for elapsed fields.
这篇关于如何从日志文件制作JMeter输出图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!