farag -3 Junior Poster in Training

Hello

Please, i need someone to help me doing this simple program

I want a program that keeps tracking of the profile of program execution

Input: A source code
Process: Keeps track of the the profile of program execution
Output: Display the original source code with line number and profile
Test: with a source program with > 100 lines of code.

Note: Profiler means the numbers of time each line is executed.

Basically, the program should be able to take as an input another code
file. And, the output should be like:
Line1 ==> 1
Line2 ==> 15
Line3 ==> 10
...
Line101 ==> 2
Note: this means that Line1 was executed once, Line2 was executed 15
times,etc.

Thanks in advance.