Skip to content

Commit

Permalink
Mesure ressources metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Huaxing YUAN authored and Huaxing YUAN committed Dec 31, 2024
1 parent d48296d commit b1b7797
Show file tree
Hide file tree
Showing 11 changed files with 243 additions and 260 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@
<ProductName>Microsoft .NET Framework 4.7.2 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include=".NETFramework,Version=v4.8">
<Visible>False</Visible>
<ProductName>Microsoft .NET Framework 4.8 %28x86 and x64%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
Expand Down Expand Up @@ -261,6 +266,7 @@
<EmbeddedResource Include="Ribbon.resx">
<DependentUpon>Ribbon.cs</DependentUpon>
</EmbeddedResource>
<None Include="AxaFrance.WebEngine.ExcelUI_1_TemporaryKey.pfx" />
<None Include="AxaFrance.WebEngine.ExcelUI_TemporaryKey.pfx" />
<None Include="packages.config" />
<None Include="Properties\Settings.settings">
Expand Down Expand Up @@ -353,10 +359,10 @@
<SignManifests>true</SignManifests>
</PropertyGroup>
<PropertyGroup>
<ManifestKeyFile>AxaFrance.WebEngine.ExcelUI_TemporaryKey.pfx</ManifestKeyFile>
<ManifestKeyFile>AxaFrance.WebEngine.ExcelUI_1_TemporaryKey.pfx</ManifestKeyFile>
</PropertyGroup>
<PropertyGroup>
<ManifestCertificateThumbprint>E17D56D22BE7799197DB7C86058639A0CF1A0690</ManifestCertificateThumbprint>
<ManifestCertificateThumbprint>96271E6190A8D7740CF12B1334391DEBCD78328E</ManifestCertificateThumbprint>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>false</SignAssembly>
Expand Down
37 changes: 21 additions & 16 deletions src/AxaFrance.WebEngine.ExcelUI/FrmAbout.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/AxaFrance.WebEngine.ExcelUI/FrmAbout.resx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
vgAADr4B6kKxwAAACO1JREFUeF7dm3lQlOcBhx2b/tXO1MzEptOJM5qZdNp0JmOSqrXteKWNYjQdmzGH
vAAADrwBlbxySQAACO1JREFUeF7dm3lQlOcBhx2b/tXO1MzEptOJM5qZdNp0JmOSqrXteKWNYjQdmzGH
mrTVVo1IKh6JQBCQSwXUAA2gIwhySsEj3CAgurhyeuCBgggqIPHgWJdjj1+/d3k/4ON7d/e7YCQ/5xmd
0Rne59lvL1km4TlYR18/LnV2o7jjEbLaOvCof4D+zdhv3APcN/Yiofk+NtbUYXaxDj89mYdJ/8sRUNLx
mP7rsd+4BGh+ZkTAjQbMLDovkmXxgwlQ+PARlp6rwOSMXKaoPSZ8gCJOfE5xOVNOChM2ALnU39dVMaXk
Expand Down
13 changes: 13 additions & 0 deletions src/AxaFrance.WebEngine.Web/JSErrors.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AxaFrance.WebEngine.Web
{
internal class JSErrors
{
public string Message { get; set; }
}
}
89 changes: 89 additions & 0 deletions src/AxaFrance.WebEngine.Web/NetworkRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AxaFrance.WebEngine.Web
{

/// <summary>
/// A network request record, which is used to store the information of a network request initiated by the browser.
/// </summary>
[Serializable]
public class NetworkRequest
{
/// <summary>
/// The time stamp of the network request.
/// </summary>
public long TimeStamp { get; set; }

/// <summary>
/// The request id of the network request.
/// </summary>
public string RequestId { get; set; }

/// <summary>
/// The http method of the network request.
/// </summary>
public string Method { get; set; }

/// <summary>
/// The url of the network request.
/// </summary>
public string Url { get; set; }

/// <summary>
/// If the request is cached (to ignore the calculation of downloaded size)
/// </summary>
public bool IsCached { get; set; }

/// <summary>
/// The size of the request.
/// </summary>
public long Request { get; set; }

/// <summary>
/// The size of the response.
/// </summary>
public long Reponse { get; set; }

/// <summary>
/// The status code of the network request.
/// </summary>
public long StatusCode { get; set; }

/// <summary>
/// The type of the resource.
/// </summary>
public string ResourceType { get; set; }

/// <summary>
/// The date and time when the request was sent to server
/// </summary>
public DateTime? Sent { get; set; }

/// <summary>
/// The date and time when the response was received from server
/// </summary>
public DateTime? Received { get; set; }

/// <summary>
/// The duration of the network request.
/// </summary>
public TimeSpan? Duration
{
get
{
if (Sent != null && Received != null)
{
return Received - Sent;
}
else
{
return null;
}
}
}
}
}
Loading

0 comments on commit b1b7797

Please sign in to comment.