Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sentinel
Commits
e648d829
Commit
e648d829
authored
Jul 30, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
55f1f662
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
SqlConcurrentController.java
.../java/com/egolm/sentinel/web/SqlConcurrentController.java
+1
-1
sqlConcurrent.html
src/main/resources/page/sqlConcurrent.html
+3
-1
No files found.
src/main/java/com/egolm/sentinel/web/SqlConcurrentController.java
View file @
e648d829
...
@@ -66,7 +66,7 @@ public class SqlConcurrentController {
...
@@ -66,7 +66,7 @@ public class SqlConcurrentController {
stack
.
add
(
ExceptionHandler
.
toStackString
(
e
).
toString
());
stack
.
add
(
ExceptionHandler
.
toStackString
(
e
).
toString
());
}
}
Long
end
=
System
.
currentTimeMillis
();
Long
end
=
System
.
currentTimeMillis
();
return
Rjx
.
jsonOk
().
setData
(
list
).
set
(
"
执行时间"
,
(
end
-
start
)).
set
(
"执行次数"
,
executeCount
).
set
(
"并发线程"
,
threadCount
);
return
Rjx
.
jsonOk
().
setData
(
list
).
set
(
"
stack"
,
StringUtil
.
join
(
"\n\n\n\n"
,
stack
)).
setMessage
(
"执行时间:"
+
(
end
-
start
)
+
", 执行次数:"
+
executeCount
+
", 并发线程:"
+
threadCount
);
}
}
public
static
class
Runner
implements
Runnable
{
public
static
class
Runner
implements
Runnable
{
...
...
src/main/resources/page/sqlConcurrent.html
View file @
e648d829
...
@@ -58,7 +58,9 @@
...
@@ -58,7 +58,9 @@
var
scope
=
this
;
var
scope
=
this
;
window
.
localStorage
.
setItem
(
"ConcurentDataSource"
,
JSON
.
stringify
(
scope
.
form
));
window
.
localStorage
.
setItem
(
"ConcurentDataSource"
,
JSON
.
stringify
(
scope
.
form
));
$
.
post
(
"concurrentSql"
,
scope
.
form
,
function
(
json
)
{
$
.
post
(
"concurrentSql"
,
scope
.
form
,
function
(
json
)
{
scope
.
logs
.
push
(
JSON
.
stringify
(
json
,
null
,
8
));
scope
.
logs
.
push
(
JSON
.
stringify
(
json
.
data
,
null
,
8
));
scope
.
logs
.
push
(
json
.
message
);
scope
.
logs
.
push
(
json
.
stack
);
});
});
}
}
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment