Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Earth Sciences
startR
Commits
b709f18c
Commit
b709f18c
authored
Nov 15, 2019
by
aho
Browse files
Add headers to PlotProfiling.R
parent
2f9a9402
Changes
1
Hide whitespace changes
Inline
Side-by-side
inst/PlotProfiling.R
View file @
b709f18c
#'Visualize profiling measurements of the Compute execution
#'
#'When excuting function 'Compute', the profiling measurements of the execution
#'are provided together with the data output. This function turns the measurements
#'into histograms and boxplots.
#'
#'@param configs
#'@param n_test
#'@param file_name
#'@param config_names
#'@param items
#'@param total_timings
#'@param crop
#'@param subtitle A charater string to add
#'
#'@return
#'
#'@keywords datagen
#'@author History:\cr
#'
#'@examples
#'@export
PlotProfiling
<-
function
(
configs
,
n_test
=
1
,
file_name
=
NULL
,
config_names
=
NULL
,
items
=
NULL
,
total_timings
=
TRUE
,
...
...
@@ -79,7 +102,7 @@ PlotProfiling <- function(configs, n_test = 1, file_name = NULL,
config_long_names
<-
c
(
config_long_names
,
config_long_name
)
config_total_times
<-
c
(
config_total_times
,
timings
[[
'total'
]])
timings
<-
as.data.frame
(
timings
)
t_all_chunks
<-
timings
[[
'total'
]]
-
timings
[[
'bychunks_setup'
]]
-
timings
[[
'
merge
'
]]
-
t_all_chunks
<-
timings
[[
'total'
]]
-
timings
[[
'bychunks_setup'
]]
-
timings
[[
'
transfer
'
]]
-
timings
[[
'merge'
]]
if
(
!
is.na
(
timings
[[
'transfer_back'
]]))
{
t_all_chunks
<-
t_all_chunks
-
timings
[[
'transfer_back'
]]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment