Paul on Nostr: npub19lt42…6qfjk If you want a rough and ready figure you can call microtime before ...
npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk (npub19lt…qfjk) If you want a rough and ready figure you can call microtime before and after and compare the results, likewise memory_get_usage. They aren't great but they will probably tell you if one function is taking 10x as long as another.
If they're not enough then really Xdebug + an analyser such as KCacheGrind are the way to go.
https://3v4l.org/ allows you to run code online but I don't think it would help with profiling.
Published at
2023-09-01 09:59:13Event JSON
{
"id": "16661058838aa4ef95d11856c1480782d7c4bb925eb248bb72784cdaecf85ed8",
"pubkey": "aebbe11c4358f6fe8a17bd121c86a972f38e8b1baac733b03eadd05f2c344e82",
"created_at": 1693562353,
"kind": 1,
"tags": [
[
"p",
"2fd7551ebb45c06cd85bd4e9391b8399866b82e36755fcf20d8739497692c930",
"wss://relay.mostr.pub"
],
[
"p",
"fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1",
"wss://relay.mostr.pub"
],
[
"e",
"480732fff0e3f38e31295b7e2b8612838a1f22d579f53fe8245e490d3945a415",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fosstodon.org/users/pwaring/statuses/110989302423982226",
"activitypub"
]
],
"content": "nostr:npub19lt4284mghqxekzm6n5njxurnxrxhqhrva2leusdsuu5ja5jeycq66qfjk If you want a rough and ready figure you can call microtime before and after and compare the results, likewise memory_get_usage. They aren't great but they will probably tell you if one function is taking 10x as long as another.\n\nIf they're not enough then really Xdebug + an analyser such as KCacheGrind are the way to go.\n\nhttps://3v4l.org/ allows you to run code online but I don't think it would help with profiling.",
"sig": "ddcf8125170542e11881d0ac8ef815424f542382858a44d36f7d8f4fc3e3d111b07070662e01a42b507e6fde63866b0f9ad4e3d6c54ce6b4abcd39f09e32848e"
}