Statistical profiler in terms of engines
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- developer-experience
Direzione di ricerca
Start by reading the Chez Scheme engine implementation and the system library procedures for inspecting continuation stacks; the issue points to the debugger as a model. The proposed profiler would repeatedly run a thunk with a small amount of fuel and sample its continuation, then count ticks by procedure. Done means a usable statistical profiler that returns or stores those counts; the issue does not name specific files or tests.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
This is just an idea: would it be possible to implement a statistical (probabilistic) profiler in terms of Chez Scheme’s engines?
The idea is the profiler would take a thunk and turn it into an engine, then invoking that engine over and over with a tiny amount of fuel. Each time it would extract the continuation of the engine and inspect it to see what the original thunk was doing when it was interrupted, and add that to its profile. Once the engine is complete, return or store the profile counting the number of ticks the thunk is estimated to have spent in each procedure.
At the moment it’s not possible to get the continuation object back out of an engine. This could be solved by making an engine a wrapper procedure. The system library appears to include procedures to inspect the stack of a continuation but I don’t immediately understand how they work; presumably the debugger can help as a model to follow.
The impetus for this idea is that I had some code which was running slowly and I suspected it was a bad hash function causing lots of collisions in hashtable-set! and hashtable-ref. I don’t believe any of Chez’s existing profilers can help with situations like this where the actual slowdown can only be observed within external library code (since it would have to measure either how long these procedures took, not only how many times they were called; or it would have to measure how often they had to reprobe, which would mean annotating the Chez hash table library). In similar situations where a slowdown is only observable by knowing how long internal procedures took, this could be a helpful tool.
- Lingua principale
- Scheme
- Stelle
- 7.4k
- Fork
- 1k
- Merge medio
- 1g 20h
- PR unite (30g)
- 19
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cisco/ChezScheme
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
cisco/ChezScheme#1110 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
cisco/ChezScheme#1111 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 12/100
cisco/ChezScheme#1101 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
cisco/ChezScheme#1078 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
RFC: solution to clangd not finding "scheme.h"Forse già presa @reginaldalfret l’ha presa 20 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
cisco/ChezScheme#1073 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di cisco/ChezScheme
Issue simili
-
extension help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
nightgauge/nightgauge#3480 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
YahiaAngelo/vphone-linux#70 ·
I maintainer di solito rispondono entro 1 giorno
-
package-request
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
ScoopInstaller/Versions#3143 ·
I maintainer di solito rispondono entro 1 giorno
-
`selector-class-pattern` does not pass arguments to custom messagesForse già presa @hsnaydd l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
stylelint-scss/stylelint-scss#1409 ·
I maintainer di solito rispondono entro 1 giorno