Skip to content

Feature request: programmatic control of Spector captures #46

New issue

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

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

Already on GitHub? # to your account

Closed
erich666 opened this issue Jul 17, 2017 · 1 comment
Closed

Feature request: programmatic control of Spector captures #46

erich666 opened this issue Jul 17, 2017 · 1 comment
Assignees
Milestone

Comments

@erich666
Copy link

I am often dealing with complex problems where a particular condition sets off a particular graphics bug or warning. I would love it if I could turn Spector's capture on and off as needed. That is, I might have

if ( cursor location over particular part ) { Spector.beginRecording(); }

possibly with optional arguments if you want to get fancy, and maybe

if ( Spector.isRecording() ) { Spector.endRecording(); }

If other words, some way to see if we're currently recording so that we could turn it off (or just allow Spector.endRecording() to be called and do nothing if not recording). You'd want to think this through, of course, e.g., what happens if two begins are hit, or no end method is encountered (I'm not quite sure what triggers "end of frame" currently).

@sebavan sebavan self-assigned this Jul 17, 2017
@sebavan sebavan added this to the Version 0.9 milestone Jul 17, 2017
@sebavan
Copy link
Member

sebavan commented Jul 17, 2017

Makes total sense and will be part of the next version as well.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants