activities2count2(Acts, StartTs) -> term()

activities2count(Acts::#activity{}, StartTs::timestamp()) -> Result

Calculate the resulting active processes and ports during
the activity interval.
Also checks active/inactive consistency.
A task will always begin with an active state and end with an inactive state.

activities2count(Acts, StartTs, Type) -> term()

waiting_activities(Activities::[#activity{}]) -> FunctionList

FunctionList = [{Seconds, Mfa, {Mean, StdDev, N}}]

Seconds = float()

Mfa = mfa()

Mean = float()

StdDev = float()

N = integer()

Calculates the time, both average and total, that a process has spent
in a receive state at specific function. However, if there are multiple receives
in a function it cannot differentiate between them.