C# Class Protogame.NetworkTrafficProfilerVisualiser.NetworkSampler

Datei anzeigen Open project: RedpointGames/Protogame

Public Methods

Method Description
NetworkSampler ( I2DRenderUtilities renderUtilities, FontAsset defaultFont, string type ) : System.Collections.Generic
Render ( IRenderContext renderContext, Rectangle rectangle ) : void
Sample ( int>.Dictionary bytes, int>.Dictionary counts, int maxHistory ) : void

Private Methods

Method Description
RenderHeader ( IRenderContext renderContext, Rectangle rectangle, string title, int n, int lastBytes, int maxBytes, string s ) : void

Method Details

NetworkSampler() public method

public NetworkSampler ( I2DRenderUtilities renderUtilities, FontAsset defaultFont, string type ) : System.Collections.Generic
renderUtilities I2DRenderUtilities
defaultFont FontAsset
type string
return System.Collections.Generic

Render() public method

public Render ( IRenderContext renderContext, Rectangle rectangle ) : void
renderContext IRenderContext
rectangle Microsoft.Xna.Framework.Rectangle
return void

Sample() public method

public Sample ( int>.Dictionary bytes, int>.Dictionary counts, int maxHistory ) : void
bytes int>.Dictionary
counts int>.Dictionary
maxHistory int
return void