Exclusive Time of Functions
Understand how to analyze execution logs to calculate the exclusive run time of functions on a single-threaded CPU using stack operations. This lesson guides you through interpreting function start and end times to determine each function's total active duration.
We'll cover the following...
We'll cover the following...
Statement
We are given an integer number, n, representing the number of functions running in a single-threaded CPU, and an execution log, which is essentially a list of strings. Each string has the format {function id}:{"start" | "end"}:{timestamp}, indicating that the function with function id either started or stopped execution at the time identified by the timestamp value. Each function has a unique ID between ...