--- a/src/eric7/DebugClients/Python/PyProfile.py Sat Dec 16 17:52:02 2023 +0100 +++ b/src/eric7/DebugClients/Python/PyProfile.py Sun Dec 17 17:15:19 2023 +0100 @@ -28,9 +28,12 @@ """ Constructor - @param basename name of the script to be profiled (string) + @param basename name of the script to be profiled + @type str @param timer function defining the timing calculation - @param bias calibration value (float) + @type function + @param bias calibration value + @type float """ try: profile.Profile.__init__(self, timer, bias) @@ -75,7 +78,8 @@ """ Public method to dump the statistics data. - @param file name of the file to write to (string) + @param file name of the file to write to + @type str """ self.create_stats() with contextlib.suppress(OSError, pickle.PickleError), open(file, "wb") as f: @@ -91,7 +95,7 @@ def fix_frame_filename(self, frame): """ - Public method used to fixup the filename for a given frame. + Public method used to fix up the filename for a given frame. The logic employed here is that if a module was loaded from a .pyc file, then the correct .py to operate with @@ -104,8 +108,10 @@ on the original machine. Another case might be sharing code over a network... This logic deals with that. - @param frame the frame object - @return fixed up file name (string) + @param frame frame object + @type frame + @return fixed up file name + @rtype str """ versionExt = ".py3" @@ -134,8 +140,11 @@ profile.py calling fix_frame_filename above. @param frame reference to the call frame + @type frame @param t arguments - @return flag indicating a successful handling (boolean) + @type list of Any + @return flag indicating a successful handling + @rtype int """ if self.cur and frame.f_back is not self.cur[-2]: rpt, rit, ret, rfn, rframe, rcur = self.cur