Empty Trace file is getting generated

Sometimes empty trace file is getting generated while trying to collect metrics through xcode command line tool. Can someone please help on this?