captureCalls allows to log function calls. It adds a message to the console with a function name, its arguments and a stacktrace. captureCalls is a better version of Chrome DevTools’ monitor function.