# NOT RUN {
# Memory profiling must be available in the running system:
if(capabilities("profmem")) {
# Quantifying the memory usage for the allocation of a square matrix (N*N dimensions)
# against a set of input data sizes:
input.sizes = 10^seq(1, 3, by = 0.1)
asymptoticMemoryUsage(matrix(data = N:N, nrow = N, ncol = N), input.sizes)
}
# }
Run the code above in your browser using DataLab