File tree Expand file tree Collapse file tree 1 file changed +25
-4
lines changed
BitFaster.Caching.ThroughputAnalysis Expand file tree Collapse file tree 1 file changed +25
-4
lines changed Original file line number Diff line number Diff line change 4
4
using System . Globalization ;
5
5
using System . IO ;
6
6
using System . Linq ;
7
+ using System . Runtime . InteropServices ;
7
8
using CsvHelper ;
8
9
using Microsoft . FSharp . Core ;
9
10
using Plotly . NET ;
@@ -107,16 +108,36 @@ public void ExportPlot(Mode mode, int cacheSize)
107
108
108
109
public string MapTitle ( Mode mode , int cacheSize )
109
110
{
111
+ string arch = System . Runtime . InteropServices . RuntimeInformation . ProcessArchitecture . ToString ( ) ;
112
+ string fwk = RuntimeInformation . FrameworkDescription . ToString ( ) ;
113
+
114
+ string os = "Win" ;
115
+
116
+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
117
+ {
118
+ os = "Mac" ;
119
+ }
120
+
121
+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
122
+ {
123
+ os = "Linux" ;
124
+ }
125
+
126
+ if ( RuntimeInformation . IsOSPlatform ( OSPlatform . FreeBSD ) )
127
+ {
128
+ os = "BSD" ;
129
+ }
130
+
110
131
switch ( mode )
111
132
{
112
133
case Mode . Read :
113
- return $ "Read throughput (100% cache hit)";
134
+ return $ "Read throughput (100% cache hit) ( { os } / { arch } / { fwk } ) ";
114
135
case Mode . ReadWrite :
115
- return $ "Read + Write throughput";
136
+ return $ "Read + Write throughput ( { os } / { arch } / { fwk } ) ";
116
137
case Mode . Update :
117
- return $ "Update throughput";
138
+ return $ "Update throughput ( { os } / { arch } / { fwk } ) ";
118
139
case Mode . Evict :
119
- return $ "Eviction throughput (100% cache miss)";
140
+ return $ "Eviction throughput (100% cache miss) ( { os } / { arch } / { fwk } ) ";
120
141
default :
121
142
return $ "{ mode } { cacheSize } ";
122
143
}
You can’t perform that action at this time.
0 commit comments