To display statistics only for a process name that match a string using top, you could use the following:
top -c -p $(pgrep -d',' -f firefox)
Here is a screenshot which only shows stats for firefox:
Hope this helps! Cheers!
Source/Credits/Reference: StackOverflow