-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: catcherwong <[email protected]>
- Loading branch information
1 parent
d05b758
commit 7d41abd
Showing
6 changed files
with
87 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<Project> | ||
<PropertyGroup> | ||
|
||
<RDBParserVersion>0.9.4</RDBParserVersion> | ||
<RDBCliVersion>0.9.4</RDBCliVersion> | ||
<RDBParserVersion>0.9.5</RDBParserVersion> | ||
<RDBCliVersion>0.9.5</RDBCliVersion> | ||
|
||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,13 +6,13 @@ | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>rdb-cli, offline key analysis</title> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css" /> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/bootstrap-table.min.css"> | ||
<link rel="stylesheet" href="https://{{CDNDOMAIN}}/[email protected]/dist/css/bootstrap.min.css" /> | ||
<link rel="stylesheet" href="https://{{CDNDOMAIN}}/[email protected]/dist/bootstrap-table.min.css"> | ||
<style> .bootstrap-table .fixed-table-pagination > .pagination-detail .page-list { display: none }</style> | ||
<script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/js/bootstrap.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/chart.min.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/bootstrap-table.min.js"></script> | ||
<script src="https://{{CDNDOMAIN}}/[email protected]/dist/jquery.min.js"></script> | ||
<script src="https://{{CDNDOMAIN}}/[email protected]/dist/js/bootstrap.min.js"></script> | ||
<script src="https://{{CDNDOMAIN}}/[email protected]/dist/chart.min.js"></script> | ||
<script src="https://{{CDNDOMAIN}}/[email protected]/dist/bootstrap-table.min.js"></script> | ||
</head> | ||
|
||
<body> | ||
|
@@ -116,6 +116,11 @@ <h3> | |
<div class="col-md-6"><canvas id="idleOrFreqByte" width="400" height="400"></canvas></div> | ||
</div> | ||
<br /><br /> | ||
<div class="row"> | ||
<div class="col-md-6"><canvas id="databaseNum" width="400" height="400"></canvas></div> | ||
<div class="col-md-6"><canvas id="databaseByte" width="400" height="400"></canvas></div> | ||
</div> | ||
<br /><br /> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<ul class="nav nav-tabs" role="tablist"> | ||
|
@@ -176,6 +181,8 @@ <h3> | |
buildExpiryByteChart(); | ||
buildIdleOrFreqNumChart(); | ||
buildIdleOrFreqByteChart(); | ||
buildDatabaseNumChart(); | ||
buildDatabaseByteChart(); | ||
|
||
$('#topPrefixTable').bootstrapTable({ | ||
data: cliData.largestKeyPrefix, | ||
|
@@ -354,6 +361,32 @@ <h3> | |
'expiryByte'); | ||
}; | ||
|
||
function buildDatabaseNumChart() { | ||
const dbLabels = cliData.dbInfo.map(item => item.DB); | ||
const dbData = cliData.dbInfo.map(item => item.Num); | ||
|
||
buildBarChart( | ||
dbLabels, | ||
dbData, | ||
'Total Keys', | ||
'Distribution of Key Database (Quantity)', | ||
formatNumber, | ||
'databaseNum'); | ||
}; | ||
|
||
function buildDatabaseByteChart() { | ||
const dbLabels = cliData.dbInfo.map(item => item.DB); | ||
const dbData = cliData.dbInfo.map(item => item.Bytes); | ||
|
||
buildBarChart( | ||
dbLabels, | ||
dbData, | ||
'Memory Usage of Keys', | ||
'Distribution of Key Database (Memory)', | ||
formatBytes, | ||
'databaseByte'); | ||
}; | ||
|
||
function buildIdleOrFreqNumChart() { | ||
const labels = cliData.idleOrFreqInfo.map(item => item.Category); | ||
const data = cliData.idleOrFreqInfo.map(item => item.Num); | ||
|