Can not use "pathping" command in macOS
In macOS Terminal, you can use traceroute for similar functionality.

There's also a nice GUI tool called Network Utility that you can use to trace a path of your network traffic (in this example I've traced www.apple.com):



In OS X Mavericks (10.9) and later, Network Utility is in /System/Library/CoreServices/Applications.

In OS X Mountain Lion (10.8), Lion (10.7), and Snow Leopard (10.6), Network Utility is in the Utilities folder of your Applications folder.