Skip to content

Instantly share code, notes, and snippets.

@tompreston
Created September 17, 2018 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tompreston/e0eae7add348d1171270faaf2e240336 to your computer and use it in GitHub Desktop.
Save tompreston/e0eae7add348d1171270faaf2e240336 to your computer and use it in GitHub Desktop.
args <- commandArgs(TRUE)
# out/gl002/20180329-080444/logsysstat-glmark2.dat
logfile <- args[1]
print(paste("log file is", logfile))
log <- read.table(logfile, header=FALSE)
colnames(log) <- c("timestamp", "counter", "counter2")
# add differential (+1 empty row at start)
log$dcounter <- c(NA, diff(log$counter))
with(log, plot(timestamp, dcounter, type="l"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment