When using Julia with a system image @profilehtml produces a 1GB html file

Open
#19 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
julia

Research direction

Start by reproducing the issue with @profilehtml and a PackageCompiler system image, then inspect how the generated statprof/julia_sys.so HTML report is selected and assembled. Confirm that shared-library data is not embedded as source, and verify that the report remains usable without producing a roughly 1GB HTML file.

Written by the indexing model from the issue text.

Description

I have a project with quite a few large dependencies, and I use PackageCompiler to produce a julia system image to speed up loading times. In this project when I run @profilehtml, one of the html files is called

statprof/julia_sys.so-L2hvbWUva2lyaWxsL1NhbmRib3hlcy9TcG9ydHNNb2RlbGxpbmcvanVsaWFfc3lzLnNv.html

and it is a 1GB (!) large html file:

% du -sh statprof/julia_sys.so-L2hvbWUva2lyaWxsL1NhbmRib3hlcy9TcG9ydHNNb2RlbGxpbmcvanVsaWFfc3lzLnNv.html
1.1G    statprof/julia_sys.so-L2hvbWUva2lyaWxsL1NhbmRib3hlcy9TcG9ydHNNb2RlbGxpbmcvanVsaWFfc3lzLnNv.html

I think the issue is that it thinks the shared library (~300MB) is in fact source code and tries to include it in html? This is pretty funny.

I can't open it in a browser and the file begins like this (using less):

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv='Content-Type' content='text/html; charset=utf-8'></meta>
    <link rel='stylesheet' type='text/css' href='statprofiler.css'></link>
    <title>StatProfilerHTML - /home/kirill/Sandboxes/Project/julia_sys.so</title>
  </head>
  <body>
    <div class='report-header'>
      <div class='backlink'>
        <a href='index.html'>Report index</a>
      </div>
      <div class='report-title'>
        StatProfilerHTML.jl report
      </div>
      <div class='generated-on'>
        Generated on Tue, 02 Feb 2021 20:46:33
      </div>
    </div>
    <table>
      <caption>File source code</caption>
      <thead>
        <tr>
          <th>Line</th>
          <th>Exclusive</th>
          <th>Inclusive</th>
          <th>Code</th>
        </tr>
      </thead>
      <tbody>
        <tr id='L1'>
          <td class='lineno'>1</td>
          <td class='tracecount excl'></td>
          <td class='tracecount incl'></td>
          <td>
            
            
            <span class='code'>^?ELF^B^A^A^@^@^@^@^@^@^@^@^@^C^@&gt;^@^A^@^@^@<80>T^@^@^@^@^@^@@^@^@^@^@^@^@^@^PR<9A>^W^@^@^@^@^@^@^@^@@^@8^@   ^@@^@&#37;^@&#36;^@^A^@^@^@^D^@^@^@^@^@^@^@^@
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@<80>N^@^@^@^@^@^@<80>N^@^@^@^@^@^@^@^P^@^@^@^@^@^@^A^@^@^@^E^@^@^@^@P^@^@^@^@^@^@^@P^@^@^@^@^@^@^@P^@^@^@^@^@^@<FD><91><B0>^@^@^@^@^@<FD><91><B0>^@^@^@
^@^@^@^P^@^@^@^@^@^@^A^@^@^@^D^@^@^@^@<F0><B0>^@^@^@^@^@^@<F0><B0>^@^@^@^@^@^@<F0><B0>^@^@^@^@^@<B8><C4>^U^@^@^@^@^@<B8><C4>^U^@^@^@^@^@^@^P^@^@^@^@^@^@^A^@^@^@^F^@^@^@^P<BF><C6>^@^@^@^@^@^P
<CF><C6>^@^@^@^@^@^P<CF><C6>^@^@^@^@^@<F6><BD>^X^U^@^@^@^@<B8>-^\^U^@^@^@^@^@^P^@^@^@^@^@^@^B^@^@^@^F^@^@^@<D8>^M<CA>^@^@^@^@^@<D8>^]<CA>^@^@^@^@^@<D8>^]<CA>^@^@^@^@^@<D0>^A^@^@^@^@^@^@<D0>
^A^@^@^@^@^@^@^H^@^@^@^@^@^@^@^D^@^@^@^D^@^@^@8^B^@^@^@^@^@^@8^B^@^@^@^@^@^@8^B^@^@^@^@^@^@&#36;^@^@^@^@^@^@^@&#36;^@^@^@^@^@^@^@^D^@^@^@^@^@^@^@P<E5>td^D^@^@^@^HԱ^@^@^@^@^@^HԱ^@^@^@^@^@^HԱ
^@^@^@^@^@|_^C^@^@^@^@^@|_^C^@^@^@^@^@^D^@^@^@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K^@<90>^M^A^@^@^@^@^@~^@^@^@^@^@^@^@^@__gmon_start__^@_ITM_deregisterTMCloneTable^@_ITM_registerTMCloneTable^@__cxa_finalize^@__sigsetjmp^@fmod^@jl_R
statprof/julia_sys.so-L2hvbWUva2lyaWxsL1NhbmRib3hlcy9TcG9ydHNNb2RlbGxpbmcvanVsaWFfc3lzLnNv.html
Dominant language
Julia
Stars
145
Forks
14
Avg merge
2d 21h
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tkluck/StatProfilerHTML.jl

All issues in tkluck/StatProfilerHTML.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.