alexmojaki / heartrate

Simple real time visualisation of the execution of a Python program.
MIT License
1.76k stars 123 forks source link

Flask compatibility #4

Open WernerWildenboer opened 5 years ago

WernerWildenboer commented 5 years ago

Probably a stupid question just want to know if this is possible or not, if so how would that be done

alexmojaki commented 5 years ago

It looks like it's currently not possible.

It might be better (for this issue and others) if the heartrate server lived in its own process and was run separately, instead of just in a thread in the same program. The problems are that:

  1. It would be less convenient for users to run the server separately.
  2. It's a lot more work to implement, particularly the communication between the heartrate server and the traced program, e.g. over a database. This library was an idea that I thought would be fun to hack together quickly, and it's getting more attention than I expected. I need to be convinced that it's actually useful to people and worth putting effort into. I don't actually use it myself.