Commit Graph

198 Commits

Author SHA1 Message Date
Vincent St-Amour
96eee2b317 Refactor. 2011-07-22 11:41:27 -04:00
Vincent St-Amour
19ce4d44a5 Don't block DrRacket if expansion exits abnormally. 2011-07-21 17:14:05 -04:00
Vincent St-Amour
58fbd8ba75 Report errors during expansion in the interactions window, not as internal errors. 2011-07-21 17:06:04 -04:00
Vincent St-Amour
b305ea9c62 Use DrRacket's program-expansion mechanisms instead of directly calling expand. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
860feb30ae Unitize performance report, to get access to some DrRacket internals. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
30146b7b8c Expose more of the TR opt logging. 2011-07-21 17:06:03 -04:00
Vincent St-Amour
29882d8fa1 Remove redundant precision-loss messages. 2011-07-19 15:19:17 -04:00
Vincent St-Amour
ce32003de2 Make Performance Report work on unsaved editors. 2011-07-15 15:04:58 -04:00
Vincent St-Amour
e07de3947b Have Performance Report work on multi-file programs. 2011-07-15 15:04:58 -04:00
Vincent St-Amour
47f0a36553 Fix when there are no reports in a file. 2011-07-15 15:04:58 -04:00
Vincent St-Amour
db9d51fef7 Change the structure of the "extra precision" missed optimizations.
Avoids reports that are almost duplicates.
2011-07-15 15:04:58 -04:00
Vincent St-Amour
c1e7d07586 Fix merging of report-entries. 2011-07-15 15:04:58 -04:00
Vincent St-Amour
93e1e6d710 Fix display of syntax. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
218fdcceb4 Fix highlight removal. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
76d91b4e3d Don't highlight irritants in the main editor. Leads to hard to understand red blobs. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
be67f304a8 Update messages. Irritants are now highlighted, not circled. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
f788f8c4c7 Popup formatting. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
72975a4e1c Use rectangle highlighting instead of ellipses. Works better across multiple lines. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
d7cb6fcc75 Separate each entry into multiple editors, for finer-grained control. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
ac3b487a9f First stab at highlighting irritants in the popup. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
2b9d035045 Add comments. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
baab138252 Fix highlight range and refactor. 2011-07-15 15:04:57 -04:00
Vincent St-Amour
6dda3c3e03 Display code in monospace. 2011-07-15 15:04:56 -04:00
Vincent St-Amour
869df45881 Rewind the canvas to the beginning after inserting text. 2011-07-15 15:04:56 -04:00
Vincent St-Amour
90ae7bc25f Use editor snips to display multiple report in a single popup. 2011-07-15 15:04:56 -04:00
Vincent St-Amour
8e2645a946 Display each opt/missed-opt separately in the tool.
This should make it easier to highlight irritants in the popup.

This required redesigning the report data structures.
2011-07-15 15:04:56 -04:00
Vincent St-Amour
ec1dedffbb Reformat message. 2011-07-15 15:04:56 -04:00
Vincent St-Amour
e59a84dc96 Abstract out popup management. 2011-07-15 15:04:55 -04:00
Vincent St-Amour
46b984a94b Use editor locking. 2011-07-15 15:04:55 -04:00
Vincent St-Amour
b42952a2f4 Use auto-wrapping. 2011-07-15 15:04:55 -04:00
Vincent St-Amour
4e3650005a First stab at using a text% to display messages. 2011-07-15 15:04:55 -04:00
Vincent St-Amour
c5d46449b7 Fix new optimization to use the new loggin facilities. 2011-07-15 15:04:55 -04:00
Vincent St-Amour
c1fe25200b Keep located syntax around so we can use it in the tool. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
d2a8a620b1 Call locate-stx at the last minute, to avoid overeager duplicate detection. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
34ccf6a3fb Fix new optimization to use new logging. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
4e0b1bfa3c Fix display of code in popup. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
e736653413 Split tool into multiple files. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
d3db388c05 Use locate-stx earlier in the logging process, for nicer display in the tool. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
0ce280da89 Display relevant code in pop-up when there's more than one message. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
604e690982 Fix name. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
f02c65dfcc Deal with overlapping opts/missed opts more nicely. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
d146f8c590 Report missed fixnum optimizations. 2011-07-15 15:04:54 -04:00
Vincent St-Amour
bfc4ad4225 Add nicer optimization reporting messages. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
d33c13e0f6 Use various shades of pink/red for highlights depending on the badness. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
47af9d51bc Make performance-report state local, to support multiple files at once. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
092df83c18 Have an icon for performance-report. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
ff5ca8a234 Handle irritants without source location properly. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
00d23a4535 Add the remaining diagnosis messages. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
975cb7ad9d Rewrite TR logging facilities to play nicely with the DrRacket tool. 2011-07-15 15:04:53 -04:00
Vincent St-Amour
d68267cbfa Have a more useful message for float missed opts. 2011-07-15 15:04:53 -04:00