Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
app-stable-website
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
Android
app-stable-website
Commits
08d2019e
Commit
08d2019e
authored
Nov 21, 2019
by
jackzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
c8a4f74b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
22 deletions
+23
-22
cartonDetail.php
leankcanary/cartonDetail.php
+20
-19
cartonList.php
leankcanary/cartonList.php
+2
-2
index.php
leankcanary/index.php
+1
-1
No files found.
leankcanary/carton
d
etail.php
→
leankcanary/carton
D
etail.php
View file @
08d2019e
...
@@ -40,15 +40,16 @@
...
@@ -40,15 +40,16 @@
// echo $row;
// echo $row;
$contentJson
=
$row
[
"contentJson"
];
$contentJson
=
$row
[
"contentJson"
];
//
$json=json_decode($contentJson,true);
$json
=
json_decode
(
$contentJson
,
true
);
//
$leakTrace = $json["leakTrace"];
$leakTrace
=
$json
[
"leakTrace"
];
//
$elements = $leakTrace["elements"];
$elements
=
$leakTrace
[
"elements"
];
//
$className = $json["className"];
$className
=
$json
[
"className"
];
echo
"<div class=title>
{
$className
}
</div>"
;
echo
"<div class=title>
{
$className
}
</div>"
;
// foreach ($elements as $key => $value) {
// $classChildName = $value["className"];
foreach
(
$elements
as
$key
=>
$value
)
{
// $referenceName = $value["referenceName"];
$classChildName
=
$value
[
"className"
];
// $classHierarchy = $value["classHierarchy"];
$referenceName
=
$value
[
"referenceName"
];
$classHierarchy
=
$value
[
"classHierarchy"
];
echo
"
echo
"
<div class=
\"
track-rcol
\"
>
<div class=
\"
track-rcol
\"
>
<div class=
\"
track-list
\"
>
<div class=
\"
track-list
\"
>
...
@@ -56,29 +57,29 @@
...
@@ -56,29 +57,29 @@
<li class=
\"
first
\"
>
<li class=
\"
first
\"
>
<i class=
\"
node-icon
\"
></i>
<i class=
\"
node-icon
\"
></i>
<div class=txt>
<div class=txt>
{
$c
ontentJson
}
{
$c
lassChildName
}
</div>
</div>
</li>
</li>
<li>
<li>
"
;
"
;
//
echo "
echo
"
//
<div class=title-1>
<div class=title-1>
// {$contentJson
}
{
$referenceName
}
//
</div>
</div>
//
";
"
;
//
foreach ($classHierarchy as $key => $value) {
foreach
(
$classHierarchy
as
$key
=>
$value
)
{
echo
"
echo
"
<div class=title-2>
<div class=title-2>
-------
{
$
contentJson
}
-------
{
$
value
}
</div>
</div>
"
;
"
;
//
}
}
echo
"</li>
echo
"</li>
</ul>
</ul>
</div>
</div>
</div>"
;
</div>"
;
//
}
}
echo
"<div class=line></div>"
;
echo
"<div class=line></div>"
;
/*echo "</tr>";*/
/*echo "</tr>";*/
...
@@ -97,7 +98,7 @@
...
@@ -97,7 +98,7 @@
}
}
}
}
function
enterpage
(
id
)
{
function
enterpage
(
id
)
{
window
.
location
=
"
carton
detail.php?id="
+
id
;
window
.
location
=
"detail.php?id="
+
id
;
}
}
</script>
</script>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
...
...
leankcanary/carton
l
ist.php
→
leankcanary/carton
L
ist.php
View file @
08d2019e
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<nav
id=
"fh5co-main-menu"
role=
"navigation"
>
<nav
id=
"fh5co-main-menu"
role=
"navigation"
>
<ul>
<ul>
<li><a
href=
"index.php"
>
内存泄露监测
</a></li>
<li><a
href=
"index.php"
>
内存泄露监测
</a></li>
<li
class=
"fh5co-active"
><a
href=
"carton
l
ist.php"
>
应用卡顿监测
</a></li>
<li
class=
"fh5co-active"
><a
href=
"carton
L
ist.php"
>
应用卡顿监测
</a></li>
<!-- <li><a href="portfolio.html">Portfolio</a></li>
<!-- <li><a href="portfolio.html">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>-->
<li><a href="contact.html">Contact</a></li>-->
...
@@ -159,7 +159,7 @@
...
@@ -159,7 +159,7 @@
}
}
}
}
function
enterpage
(
id
)
{
function
enterpage
(
id
)
{
window
.
location
=
"carton
detail
.php?id="
+
id
;
window
.
location
=
"carton
Details
.php?id="
+
id
;
}
}
</script>
</script>
...
...
leankcanary/index.php
View file @
08d2019e
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
<nav
id=
"fh5co-main-menu"
role=
"navigation"
>
<nav
id=
"fh5co-main-menu"
role=
"navigation"
>
<ul>
<ul>
<li
class=
"fh5co-active"
><a
href=
"index.php"
>
内存泄露监测
</a></li>
<li
class=
"fh5co-active"
><a
href=
"index.php"
>
内存泄露监测
</a></li>
<li><a
href=
"carton
l
ist.php"
>
应用卡顿监测
</a></li>
<li><a
href=
"carton
L
ist.php"
>
应用卡顿监测
</a></li>
<!-- <li><a href="portfolio.html">Portfolio</a></li>
<!-- <li><a href="portfolio.html">Portfolio</a></li>
<li><a href="about.html">About</a></li>
<li><a href="about.html">About</a></li>
<li><a href="contact.html">Contact</a></li>-->
<li><a href="contact.html">Contact</a></li>-->
...
...
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