qualialabs / profile

A CPU profiler for Meteor. Profile the Meteor build process, server startup, and server runtime.
MIT License
57 stars 8 forks source link

Error: EISDIR: illegal operation on a directory, open #5

Closed yogeshwar607 closed 5 years ago

yogeshwar607 commented 5 years ago

Getting below issue on mac when running through meteor shell

`import Profiler from "meteor/qualia:profile";
  let profileName = 'myprofile';
  let profilePath = `/Users/yogi/frontier/fm.client.meteor.updated/.profile`;
  let profileMS = 10000;

Profiler.profileDuration(profileName, profilePath, profileMS);

Error: EISDIR: illegal operation on a directory, open`

veered commented 5 years ago

Is /Users/yogi/frontier/fm.client.meteor.updated/.profile a directory? Perhaps you actually want /Users/yogi/frontier/fm.client.meteor.updated/.profile/mycpuprofile.cpuprofile.

That's what this StackOverflow post says EISDIR means: https://stackoverflow.com/questions/34959038/npm-stuck-giving-the-same-error-eisdir-illegal-operation-on-a-directory-read-a