Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
a241390a
Commit
a241390a
authored
May 22, 2017
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename compilationSpeed => compilationDuration
parent
7474ddf2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app.js
src/app.js
+1
-1
compiler.js
src/app/compiler.js
+2
-2
No files found.
src/app.js
View file @
a241390a
...
@@ -817,7 +817,7 @@ var run = function () {
...
@@ -817,7 +817,7 @@ var run = function () {
})
})
var
warnMsg
=
' Last compilation took {X}ms. We suggest to turn off autocompilation.'
var
warnMsg
=
' Last compilation took {X}ms. We suggest to turn off autocompilation.'
compiler
.
event
.
register
(
'compilation
Speed
'
,
(
speed
)
=>
{
compiler
.
event
.
register
(
'compilation
Duration
'
,
(
speed
)
=>
{
$
(
'#warnCompilationSlow'
).
html
(
''
)
$
(
'#warnCompilationSlow'
).
html
(
''
)
$
(
'#header #menu .settingsView'
).
css
(
'color'
,
''
)
$
(
'#header #menu .settingsView'
).
css
(
'color'
,
''
)
if
(
speed
>
1000
)
{
if
(
speed
>
1000
)
{
...
...
src/app/compiler.js
View file @
a241390a
...
@@ -9,7 +9,7 @@ var utils = require('./utils')
...
@@ -9,7 +9,7 @@ var utils = require('./utils')
var
EventManager
=
require
(
'ethereum-remix'
).
lib
.
EventManager
var
EventManager
=
require
(
'ethereum-remix'
).
lib
.
EventManager
/*
/*
trigger compilationFinished, compilerLoaded, compilationStarted, compilation
Speed
trigger compilationFinished, compilerLoaded, compilationStarted, compilation
Duration
*/
*/
function
Compiler
(
handleImportCall
)
{
function
Compiler
(
handleImportCall
)
{
var
self
=
this
var
self
=
this
...
@@ -31,7 +31,7 @@ function Compiler (handleImportCall) {
...
@@ -31,7 +31,7 @@ function Compiler (handleImportCall) {
var
compilationStartTime
=
null
var
compilationStartTime
=
null
this
.
event
.
register
(
'compilationFinished'
,
(
success
,
data
,
source
)
=>
{
this
.
event
.
register
(
'compilationFinished'
,
(
success
,
data
,
source
)
=>
{
if
(
success
&&
compilationStartTime
)
{
if
(
success
&&
compilationStartTime
)
{
this
.
event
.
trigger
(
'compilation
Speed
'
,
[(
new
Date
().
getTime
())
-
compilationStartTime
])
this
.
event
.
trigger
(
'compilation
Duration
'
,
[(
new
Date
().
getTime
())
-
compilationStartTime
])
}
}
compilationStartTime
=
null
compilationStartTime
=
null
})
})
...
...
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