Trace Actions
You can trace Actions to generate a log of all activity that happened on a particular set of Actions. To do so, use InputActionTrace. This behaves in a similar way to InputEventTrace for events.
Note
InputActionTrace allocates unmanaged memory and needs to be disposed of so that it doesn't create memory leaks.
Warning
It looks like the sample you are looking for does not exist.
Once recorded, a trace can be safely read from multiple threads as long as it is not concurrently being written to and as long as the Action setup (that is, the configuration data accessed by the trace) is not concurrently being changed on the main thread.