Norbert Podsadowski
Norbert Podsadowski
You could try https://github.com/benfred/py-spy, it seems a lot more active.
I believe https://github.com/uber/pyflame/pull/163 is doing just that!
Is there any progress on getting some of these fields added? I'm currently having to work around the non-existent "before" field in PushEventPayload, for example.
Sure, I can do that at some point this week. Also, I was wondering why, when accessing the Events API, the "deleted" field is not included in PushEvent payloads. I'm...
Okay, thanks a lot, I'll see what I can find.
Update: I was able to get out the individual GC events using this code: ``` Field f = gc.getClass().getDeclaredField("jvmDao"); f.setAccessible(true); JvmDao dao = (JvmDao) f.get(gc); for (BlockingEvent e : dao.getBlockingEvents())...
After some more experimentation, the above approach looked promising. I am now trying to monitor the heap size changes along with the events. The first thing I did was something...
I think it's cleaner to do: ```python from fastapi.encoders import jsonable_encoder jsonable_encoder(traffic_light) ``` This returns a dictionary in a json-serialisable format, e.g. with enum values used instead of objects.
That works, although is a little more verbose than I expected. Thank you.
@dylanwa indeed, I'm using root_validator and it's working quite well: ```python from abc import abstractmethod from pydantic import BaseModel, root_validator class BaseModelWithStringRepresentation(BaseModel): string_representation: str = "" @classmethod @abstractmethod def get_string_representation(cls,...