How you obtain this information is entirely dependant on the operating system.
On Linux the simplest tool is to use iostat
which will show you how much read/write in blocks and count for each file system.
Performance measurements on a per directory basis are not very meaningful as file systems are not implemented that way. You write to files which can be anywhere on disk and these files might appear in one or more directories. The files are not physically arranged by directory.