fixed a bug about performance logging in linux