Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
6ec7d77e
Commit
6ec7d77e
authored
Oct 09, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
speed logger
parent
356ccba1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
DesktopEditor/doctrenderer/doctrenderer.cpp
DesktopEditor/doctrenderer/doctrenderer.cpp
+14
-0
No files found.
DesktopEditor/doctrenderer/doctrenderer.cpp
View file @
6ec7d77e
...
...
@@ -599,6 +599,8 @@ namespace NSDoctRenderer
bool
ExecuteScript
(
const
std
::
string
&
strScript
,
const
std
::
wstring
&
sCachePath
,
std
::
wstring
&
strError
,
std
::
wstring
&
strReturnParams
)
{
LOGGER_SPEED_START
bool
bIsBreak
=
false
;
v8
::
Isolate
*
isolate
=
CV8Worker
::
getInitializer
()
->
CreateNew
();
if
(
true
)
...
...
@@ -619,6 +621,8 @@ namespace NSDoctRenderer
v8
::
Local
<
v8
::
String
>
source
=
v8
::
String
::
NewFromUtf8
(
isolate
,
strScript
.
c_str
());
v8
::
Local
<
v8
::
Script
>
script
;
LOGGER_SPEED_LAP
(
"pre_compile"
)
CCacheDataScript
oCachedScript
(
sCachePath
);
if
(
sCachePath
.
empty
())
script
=
v8
::
Script
::
Compile
(
source
);
...
...
@@ -627,6 +631,8 @@ namespace NSDoctRenderer
script
=
oCachedScript
.
Compile
(
context
,
source
);
}
LOGGER_SPEED_LAP
(
"compile"
)
// COMPILE
if
(
try_catch
.
HasCaught
())
{
...
...
@@ -658,6 +664,8 @@ namespace NSDoctRenderer
}
}
LOGGER_SPEED_LAP
(
"run"
)
if
(
!
bIsBreak
&&
m_oParams
.
m_bIsRetina
)
{
v8
::
Local
<
v8
::
String
>
sourceParams
=
v8
::
String
::
NewFromUtf8
(
isolate
,
...
...
@@ -761,6 +769,8 @@ namespace NSDoctRenderer
}
}
LOGGER_SPEED_LAP
(
"open"
)
// CHANGES
if
(
!
bIsBreak
)
{
...
...
@@ -823,6 +833,8 @@ namespace NSDoctRenderer
}
}
LOGGER_SPEED_LAP
(
"changes"
)
bool
bIsMailMerge
=
false
;
if
(
!
m_oParams
.
m_strMailMergeDatabasePath
.
empty
()
&&
m_oParams
.
m_nMailMergeIndexEnd
>=
m_oParams
.
m_nMailMergeIndexStart
&&
...
...
@@ -997,6 +1009,8 @@ namespace NSDoctRenderer
{
bIsBreak
=
Doct_renderer_SaveFile
(
&
m_oParams
,
pNative
,
isolate
,
global_js
,
args
,
try_catch
,
strError
);
}
LOGGER_SPEED_LAP
(
"save"
)
}
isolate
->
Dispose
();
...
...
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