Integration of visualization with source code in the Eclipse development environment
A computer implemented method involving receiving by an integrated development environment an output file from a profiling utility to generate a line chart of data from the output file. The method to visualize profiling data for a binary file automatically and to displaying corresponding source code in response to a user selection of a data point in the line chart.
1. A method, comprising:
selecting a binary file in an integrated development environment (IDE);
transmitting, by a processing device executing a utility specific plug-in in conjunction with a general purpose framework plug-in of the IDE, the binary file to a profiling utility external to the IDE;
receiving, by the processing device executing the general purpose framework plug-in and the utility specific plug-in, profiling data generated by the profiling utility in view of the binary file;
generating, using the profiling data, a data model correlating the profiling data with source code associated with the binary file; and
displaying a graphical chart to visualize the profiling data of the binary file in view of the data model.
2. The method of claim 1 , further comprising:
displaying the source code corresponding to a user selected data point in the graphical chart.
3. The method of claim 1 , wherein the utility specific plug-in and a general purpose framework plug-in are components of the IDE.
4. The method of claim 1 , wherein the profiling utility is a Valgrind™ profiling utility that uses a massif profiler to analyze the binary file.
5. The method of claim 1 , wherein the integrated development environment (IDE) is an Eclipse™ IDE.
6. The method of claim 1 , further comprising:
displaying a list of source code locations in response to a selection of a data point in the graphical chart.
7. The method of claim 6 , further comprising:
displaying, in response to selection of a source code location, source code from the selected location.
8. The method of claim 1 , further comprising:
passing the data model to a data charting module.
9. A non-transitory computer-readable medium having instructions stored thereon, which when executed by a processing device, cause the processing device to perform operations, comprising:
selecting a binary file in an integrated development environment (IDE);
transmitting, by a processing device executing a utility specific plug-in in conjunction with a general purpose framework plug-in of the IDE, the binary file to a profiling utility external to the IDE;
receiving, by the processing device executing the general purpose framework plug-in and the utility specific plug in profiling data generated by the profiling utility in view of the binary file;
generating, using the profiling data, a data model correlating the profiling data with source code associated with the binary file; and
displaying a graphical chart to visualize the profiling data of the binary file in view of the data model.
10. The non-transitory computer-readable medium of claim 9 , the operations further comprising:
displaying the source code corresponding to a user selected data point in the graphical chart.
11. The non-transitory computer-readable medium of claim 9 , wherein the utility specific plug-in and a general purpose framework plug-in are components of the IDE.
12. The non-transitory computer-readable medium of claim 9 , wherein the profiling utility is a Valgrind™ profiling utility that uses a massif profiler to analyze the binary file.
13. The non-transitory computer-readable medium of claim 9 , wherein the integrated development environment (IDE) is an Eclipse™ IDE.
14. The non-transitory computer-readable medium of claim 9 , the operations further comprising:
displaying a list of source code locations in response to a selection of a data point in the chart.
15. The non-transitory computer-readable medium of claim 14 , the operations further comprising:
displaying, in response to selection of a source code location, source code from the selected location.
16. The non-transitory computer-readable medium of claim 9 , the operations further comprising:
parsing the output file into a data model and passing the data model to a data charting module.
17. A computer system, comprising:
a memory; and
a processing device coupled to the memory to:
select a binary file in an integrated development environment (IDE);
transmit, by the processing device executing a utility specific plug-in in conjunction with a general purpose framework plug-in of the IDE, the binary file to a profiling utility external to the IDE;
receive, by the processing device executing the general purpose framework plug-in and the utility specific plug in, profiling data generated by the profiling utility in view of the binary file;
generate, using profiling data, a data model correlating the profiling data with source code associated with the binary file;
display a graphical chart to visualize the profiling data of the binary file in view of the data model.
18. The computer system of claim 17 , wherein the processing device further:
displaying the source code corresponding to a user selected data point in the graphical chart.
19. The system of claim 18 , wherein the integrated development environment (IDE) is an Eclipse™ IDE and the profiling utility is a Valgrind™ profiling utility.
20. The system of claim 17 , wherein the utility specific plug-in and a general purpose framework plug-in are components that generate a listing of function calls corresponding to the user selected data point.