|
21 | 21 | root = tk.Tk()
|
22 | 22 |
|
23 | 23 | root.geometry("500x500") # set the root dimensions
|
24 |
| -root.title('HAR Analyzer') |
| 24 | +root.title('HAR Tool') |
25 | 25 | root.pack_propagate(False) # tells the root to not let the widgets inside it determine its size.
|
26 | 26 | # root.resizable(0, 0) # makes the root window fixed in size.
|
27 | 27 |
|
@@ -154,6 +154,7 @@ def Load_Har_data():
|
154 | 154 | df = df.astype({"Total Time":'int',"blocked":'int',"dns":'int',"ssl":'int',"connect":'int',"send":'int',"wait":'int',"receive":'int',"_blocked_queueing":'int'})
|
155 | 155 | df = df.rename(columns={"Total Time":"Total Time (ms)","blocked":"blocked (ms)","dns":"dns (ms)","ssl":"ssl (ms)","connect":"connect (ms)","send":"send (ms)","wait":"wait (ms)","receive":"receive (ms)","_blocked_queueing":"blocked_queueing (ms)"})
|
156 | 156 | df=df.replace(-1,"None")
|
| 157 | + df=df.iloc[:, [0,1,2,3,4,5,6,8,9,10,11,7,12]] |
157 | 158 | clear_data()
|
158 | 159 |
|
159 | 160 | r_set = df.to_numpy().tolist()
|
@@ -220,8 +221,10 @@ def graph2():
|
220 | 221 | def graph():
|
221 | 222 |
|
222 | 223 | #DF = df.drop(df.columns[[1, 2, 3]], axis=1)
|
223 |
| - DF = df.drop(df.columns[[0, 2, 3, 4]], axis=1) |
224 |
| - DF[["blocked (ms)","dns (ms)","ssl (ms)","connect (ms)","send (ms)","wait (ms)","receive (ms)","blocked_queueing (ms)"]] = DF[["blocked (ms)","dns (ms)","ssl (ms)","connect (ms)","send (ms)","wait (ms)","receive (ms)","blocked_queueing (ms)"]].replace("None", 0) |
| 224 | + DF = df.drop(df.columns[[0, 2, 3, 4, 11, 12]], axis=1) |
| 225 | + DF[["blocked (ms)","dns (ms)","connect (ms)","send (ms)","wait (ms)","receive (ms)"]] = DF[["blocked (ms)","dns (ms)","connect (ms)","send (ms)","wait (ms)","receive (ms)"]].replace("None", 0) |
| 226 | + #DF = df.drop(df.columns[[0, 2, 3, 4]], axis=1) |
| 227 | + #DF[["blocked (ms)","dns (ms)","ssl (ms)","connect (ms)","send (ms)","wait (ms)","receive (ms)","blocked_queueing (ms)"]] = DF[["blocked (ms)","dns (ms)","ssl (ms)","connect (ms)","send (ms)","wait (ms)","receive (ms)","blocked_queueing (ms)"]].replace("None", 0) |
225 | 228 | #DF = DF[DF.iloc[:, 1:].ne(0).any(axis=1)].reset_index(drop=True)
|
226 | 229 |
|
227 | 230 |
|
|
0 commit comments