Home | History | Annotate | Download | only in report
      1 // Copyright 2014 The Go Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style
      3 // license that can be found in the LICENSE file.
      4 
      5 package report
      6 
      7 const weblistPageHeader = `
      8 <!DOCTYPE html>
      9 <html>
     10 <head>
     11 <title>Pprof listing</title>
     12 <style type="text/css">
     13 body {
     14 font-family: sans-serif;
     15 }
     16 h1 {
     17   font-size: 1.5em;
     18   margin-bottom: 4px;
     19 }
     20 .legend {
     21   font-size: 1.25em;
     22 }
     23 .line {
     24 color: #aaaaaa;
     25 }
     26 .nop {
     27 color: #aaaaaa;
     28 }
     29 .unimportant {
     30 color: #cccccc;
     31 }
     32 .disasmloc {
     33 color: #000000;
     34 }
     35 .deadsrc {
     36 cursor: pointer;
     37 }
     38 .deadsrc:hover {
     39 background-color: #eeeeee;
     40 }
     41 .livesrc {
     42 color: #0000ff;
     43 cursor: pointer;
     44 }
     45 .livesrc:hover {
     46 background-color: #eeeeee;
     47 }
     48 .asm {
     49 color: #008800;
     50 display: none;
     51 }
     52 </style>
     53 <script type="text/javascript">
     54 function pprof_toggle_asm(e) {
     55   var target;
     56   if (!e) e = window.event;
     57   if (e.target) target = e.target;
     58   else if (e.srcElement) target = e.srcElement;
     59 
     60   if (target) {
     61     var asm = target.nextSibling;
     62     if (asm && asm.className == "asm") {
     63       asm.style.display = (asm.style.display == "block" ? "" : "block");
     64       e.preventDefault();
     65       return false;
     66     }
     67   }
     68 }
     69 </script>
     70 </head>
     71 <body>
     72 `
     73 
     74 const weblistPageClosing = `
     75 </body>
     76 </html>
     77 `
     78