Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HXCPP_PROFILER doesn't generate any output #580

Closed
azrafe7 opened this issue Mar 26, 2017 · 2 comments
Closed

HXCPP_PROFILER doesn't generate any output #580

azrafe7 opened this issue Mar 26, 2017 · 2 comments

Comments

@azrafe7
Copy link

azrafe7 commented Mar 26, 2017

Hi @hughsando,
I'm trying to make the cpp profiler work again with the latest hxcpp version. I've successfully used it in the past, but now it doesn't generate any output, and I'm lost as to what I'm doing wrong.

(there's also this unanswered SO question http://stackoverflow.com/questions/41836910/hxcpp-profiler-wont-create-log-file that suggests I'm not the only one with this problem)

For how I'm trying to trigger it:

  • I have a simple project (similar to the one in the SO question)
  • I define -D HXCPP_STACK_TRACE and -D HXCPP_PROFILER
  • I've tried rebuilding the tools (as per hxcpp readme)
  • and following instructions given in http://gamehaxe.com/2012/09/14/hxcpp-built-in-debugging/ (bit outdate I know, but that was all I needed to do last time I checked)
  • using an absolute path didn't solve the issue (still no file is generated)

For completeness here's the code I was using:

class TestProfile {
  
  static function main() {
    var logFile = "c:\\profile.log";
    var args = Sys.args();
    if (args.length > 0) {
      logFile = args[0];
    }
    trace("args: " + args);
    trace('start profiling to $logFile');
    cpp.vm.Profiler.start(logFile);
    for (i in 0...100) {
      Sys.print(".");
    }
    Sys.println("");
    cpp.vm.Profiler.stop();
    trace('stop profiling');
    //Sys.exit(0);
  }
}

Any ideas?

PS: I'm on latest haxe/hxcpp, on win7 64bit/vs2015

Thanks

@matrefeytontias
Copy link
Contributor

I'm bumping this. I'm the author of that still unanswered Stack Overflow question, and I still have no idea what's going on and can't make the profiler generate any output. Any progress on this ?

@azrafe7
Copy link
Author

azrafe7 commented May 17, 2017

Oooh... that PR fixed it! 👍

Thanks to both @matrefeytontias and @hughsando.

Closing this.

PS: the SO question still needs an answer though. 😛

@azrafe7 azrafe7 closed this as completed May 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants