Let the monitored process store the query arguments.

By saving the query arguments into the process dictionary, we can
easily figure out what query is executing for a given process. If this
process has a large result, we will hence obtain the given result
easily.