runMeasure: Run and Measure Code

Description Usage Arguments Details Value

View source: R/runMeasure.R

Description

Will export this once I the full pipeline works.

Usage

1
2
runMeasure(code, graph = inferGraph(code), envir = globalenv(),
  timer = Sys.time)

Arguments

code

to be passed into inferGraph

graph

object of class TaskGraph

envir

environment to evaluate the code in

timer

function that returns a timestamp.

Details

Run the serial code in the task graph and measure how long each expression takes to run as well as the object sizes of each variable that can possibly be transferred.

This does naive and biased timing since it doesn't account for the overhead in evaluating a single expression. However, this is fine for this application since the focus is on measuring statements that take at least on the order of 1 second to run.

Value

graph object of class MeasuredTaskGraph


clarkfitzg/makeParallel documentation built on Nov. 21, 2020, 2:35 a.m.