shouldProfilePlatformChannels top-level property

bool get shouldProfilePlatformChannels

Profile and print statistics on Platform Channel usage.

When this is true statistics about the usage of Platform Channels will be printed out periodically to the console and Timeline events will show the time between sending and receiving a message (encoding and decoding time excluded).

The statistics include the total bytes transmitted and the average number of bytes per invocation in the last quantum. "Up" means in the direction of Flutter to the host platform, "down" is the host platform to flutter.

Implementation

bool get shouldProfilePlatformChannels => kProfilePlatformChannels || (!kReleaseMode && debugProfilePlatformChannels);