AUTOMATION OF INSTRUMETALIZATION OF CODE USING ROSLYN CODE GENERATOR
DOI:
https://doi.org/10.24867/01BE45MaricKeywords:
Roslyn, code generation, C#, compilerAbstract
Automated instrumentation of code is a process of code modification to allow it to keep records of events that occurred during the execution of software of interest. The motivation for implementation is the time savings that can be gained if the whole process is automated. To implement the solution, Roslyn platform for writing user-defined compilers is used. The reason for using the Roslyn platform lies in an object model that it provides and an intuitive way of code generation, which is a central part of the work that will be described.
References
[1] drdobbs.com, 2011, Commenting, Testing, and Instrumenting Code, [online] dostupno na: http://www.drdobbs.com/architecture-and-design/commenting-testing-and-instrumenting-cod/229300224 [posećeno 07.09.2018]
[2] docs.microsoft.com, Code Generation and T4 Text Templates, [online] dostupno na: https://docs.microsoft.com/en-us/visualstudio/modeling/code-generation-and-t4-text-templates?view=vs-2017 [posećeno 10.09.2018]
[3] Alfred, V. Aho 2007, Compilers: Principles, Techniques, and Tools, 2nd edn, AddisonWesley, Boston
[2] docs.microsoft.com, Code Generation and T4 Text Templates, [online] dostupno na: https://docs.microsoft.com/en-us/visualstudio/modeling/code-generation-and-t4-text-templates?view=vs-2017 [posećeno 10.09.2018]
[3] Alfred, V. Aho 2007, Compilers: Principles, Techniques, and Tools, 2nd edn, AddisonWesley, Boston
Downloads
Published
2018-12-12
Issue
Section
Electrotechnical and Computer Engineering