How is there not a timer built into the C preprocessor?
-
-
Replying to @AllenWebster4th
I suppose it would have to be built into the entire compilation process but still seems like a doable thing.
1 reply 0 retweets 1 like -
Replying to @AllenWebster4th
But the compiler doesn't compile things in isolation like that, so how would that work?
1 reply 0 retweets 0 likes -
Replying to @cmuratori
I sort of imagine specifying ranges and trying to get the time for all the constructs in that range...
1 reply 0 retweets 0 likes -
Replying to @AllenWebster4th @cmuratori
but I realize it breaks down at code gen and linking. But I imagine it could be useful to get profiling for the parsing stage.
1 reply 0 retweets 0 likes -
Replying to @AllenWebster4th
Generally speaking I doubt block-level parser timing is going to tell you much, though. Parsing is super cheap.
1 reply 0 retweets 0 likes -
Replying to @cmuratori @AllenWebster4th
And since you can't see the pragmas until you load the file, you miss potentially the slowest part, which is the IO.
1 reply 0 retweets 0 likes -
Replying to @cmuratori
Ahh I see. My understanding of compile times might be too rudimentary to make suggestions then.
1 reply 0 retweets 0 likes -
Replying to @AllenWebster4th @cmuratori
In the abstract, I still wish the compiler was helping me understand where my time was going.
1 reply 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.