code: def __profile_file(self):
          
          self.line_profiler = pprofile.Profile()
          self.line_profiler.runfile(
              open(self.pyfile.path, "r"), {}, self.pyfile.path
          )
docs: Method used to profile the given file line by line.