Custom log

Is there an easy way to log the total runtime of one virtual user?

.extraInfoExtractor(extraInfo => List(extraInfo.response.firstByteSent, extraInfo.response.lastByteReceived))

Then write something to calculate the time?

Have you tried looking at the simulation.log?

you probably want to add the userId to the extraInfo, then when analysing the log to create the report you can use that to compute the total runtime for each user.

if you want to get an idea of the records structure in the log file have a look at https://github.com/gatling/gatling/blob/master/gatling-charts/src/main/scala/io/gatling/charts/result/reader/FileDataReader.scala and https://github.com/gatling/gatling/blob/master/gatling-charts/src/main/scala/io/gatling/charts/result/reader/Records.scala

which are the default classes used to parse the simulation log.

jean