Created
September 17, 2018 16:30
-
-
Save tompreston/e0eae7add348d1171270faaf2e240336 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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