<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/llvm/lib/Support/TimeProfiler.cpp, branch users/nico/python-1</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[llvm] Remove redundant calls to std::unique_ptr&lt;T&gt;::get (NFC) (#113415)</title>
<updated>2024-10-23T17:44:09+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2024-10-23T17:44:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=141574bacb2c10b795490d0fa5ea31acbc5d8c6e'/>
<id>141574bacb2c10b795490d0fa5ea31acbc5d8c6e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[TimeProfiler] Added instant events to llvm TimeProfiler. (#103039)</title>
<updated>2024-10-08T11:04:39+00:00</updated>
<author>
<name>ivanaivanovska</name>
<email>iivanovska@google.com</email>
</author>
<published>2024-10-08T11:04:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=871f69f0b657a4c60d5ad26b5dc4cc2b1f0e5f3b'/>
<id>871f69f0b657a4c60d5ad26b5dc4cc2b1f0e5f3b</id>
<content type='text'>
This adds support for adding instant events to the TimeProfiler. Later we plan to use it to record deferring of template instantiations.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This adds support for adding instant events to the TimeProfiler. Later we plan to use it to record deferring of template instantiations.</pre>
</div>
</content>
</entry>
<entry>
<title>Reapply "Add source file name for template instantiations in -ftime-trace" (#99757)</title>
<updated>2024-07-21T18:55:34+00:00</updated>
<author>
<name>Utkarsh Saxena</name>
<email>usx@google.com</email>
</author>
<published>2024-07-21T18:55:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=ecaacd14c35996ad6ee53da6af6c9f4cf36d9110'/>
<id>ecaacd14c35996ad6ee53da6af6c9f4cf36d9110</id>
<content type='text'>
Reverts https://github.com/llvm/llvm-project/pull/99731

Remove accidentally added temporary file.
Also, fix the uninitialized read of line number.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reverts https://github.com/llvm/llvm-project/pull/99731

Remove accidentally added temporary file.
Also, fix the uninitialized read of line number.</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Reapply "Add source file name for template instantiations in -ftime-trace"" (#99731)</title>
<updated>2024-07-20T01:58:25+00:00</updated>
<author>
<name>Jorge Gorbe Moya</name>
<email>jgorbe@google.com</email>
</author>
<published>2024-07-20T01:58:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=abaf13ad589d72b356a8788a5095f869d9d038d0'/>
<id>abaf13ad589d72b356a8788a5095f869d9d038d0</id>
<content type='text'>
Reverts llvm/llvm-project#99545

There were a couple of issues reported in the PR: a sanitizer warning
(https://lab.llvm.org/buildbot/#/builders/164/builds/1246/steps/14/logs/stdio)
and a tmp file accidentally included in the commit.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reverts llvm/llvm-project#99545

There were a couple of issues reported in the PR: a sanitizer warning
(https://lab.llvm.org/buildbot/#/builders/164/builds/1246/steps/14/logs/stdio)
and a tmp file accidentally included in the commit.</pre>
</div>
</content>
</entry>
<entry>
<title>Reapply "Add source file name for template instantiations in -ftime-trace" (#99545)</title>
<updated>2024-07-19T14:40:28+00:00</updated>
<author>
<name>Utkarsh Saxena</name>
<email>usx@google.com</email>
</author>
<published>2024-07-19T14:40:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=f1c27a9b269ead54d348e19b78b608c961c9e647'/>
<id>f1c27a9b269ead54d348e19b78b608c961c9e647</id>
<content type='text'>
Fix the Windows test.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the Windows test.</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Add source file name for template instantiations in -ftime-trace" (#99534)</title>
<updated>2024-07-18T17:49:01+00:00</updated>
<author>
<name>Utkarsh Saxena</name>
<email>usx@google.com</email>
</author>
<published>2024-07-18T17:49:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=04bcd74df73af6fed16bfd0d6784fc0aec582bc0'/>
<id>04bcd74df73af6fed16bfd0d6784fc0aec582bc0</id>
<content type='text'>
Reverts llvm/llvm-project#98320

Breaks windows tests:

```
Step 8 (test-build-unified-tree-check-clang-unit) failure: test (failure)
******************** TEST 'Clang-Unit :: Support/./ClangSupportTests.exe/1/3' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\unittests\Support\.\ClangSupportTests.exe-Clang-Unit-4296-1-3.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=3 GTEST_SHARD_INDEX=1 C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\unittests\Support\.\ClangSupportTests.exe
--

Script:
--
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\unittests\Support\.\ClangSupportTests.exe --gtest_filter=TimeProfilerTest.TemplateInstantiations
--
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Support\TimeProfilerTest.cpp(278): error: Expected equality of these values:
  R"(
Frontend
| ParseFunctionDefinition (fooB)
| ParseFunctionDefinition (fooMTA)
| ParseFunctionDefinition (fooA)
| ParseDeclarationOrFunctionDefinition (test.cc:3:5)
| | ParseFunctionDefinition (user)
| PerformPendingInstantiations
| | InstantiateFunction (fooA&lt;int&gt;, ./a.h:7)
| | | InstantiateFunction (fooB&lt;int&gt;, ./b.h:3)
| | | InstantiateFunction (fooMTA&lt;int&gt;, ./a.h:4)
)"
    Which is: "\nFrontend\n| ParseFunctionDefinition (fooB)\n| ParseFunctionDefinition (fooMTA)\n| ParseFunctionDefinition (fooA)\n| ParseDeclarationOrFunctionDefinition (test.cc:3:5)\n| | ParseFunctionDefinition (user)\n| PerformPendingInstantiations\n| | InstantiateFunction (fooA&lt;int&gt;, ./a.h:7)\n| | | InstantiateFunction (fooB&lt;int&gt;, ./b.h:3)\n| | | InstantiateFunction (fooMTA&lt;int&gt;, ./a.h:4)\n"
  buildTraceGraph(Json)
    Which is: "\nFrontend\n| ParseFunctionDefinition (fooB)\n| ParseFunctionDefinition (fooMTA)\n| ParseFunctionDefinition (fooA)\n| ParseDeclarationOrFunctionDefinition (test.cc:3:5)\n| | ParseFunctionDefinition (user)\n| PerformPendingInstantiations\n| | InstantiateFunction (fooA&lt;int&gt;, .\\a.h:7)\n| | | InstantiateFunction (fooB&lt;int&gt;, .\\b.h:3)\n| | | InstantiateFunction (fooMTA&lt;int&gt;, .\\a.h:4)\n"
With diff:
@@ -7,5 +7,5 @@
 | | ParseFunctionDefinition (user)
 | PerformPendingInstantiations
-| | InstantiateFunction (fooA&lt;int&gt;, ./a.h:7)
-| | | InstantiateFunction (fooB&lt;int&gt;, ./b.h:3)
-| | | InstantiateFunction (fooMTA&lt;int&gt;, ./a.h:4)\n
+| | InstantiateFunction (fooA&lt;int&gt;, .\\a.h:7)
+| | | InstantiateFunction (fooB&lt;int&gt;, .\\b.h:3)
+| | | InstantiateFunction (fooMTA&lt;int&gt;, .\\a.h:4)\n



C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Support\TimeProfilerTest.cpp:278
Expected equality of these values:
  R"(
Frontend
| ParseFunctionDefinition (fooB)
| ParseFunctionDefinition (fooMTA)
| ParseFunctionDefinition (fooA)
| ParseDeclarationOrFunctionDefinition (test.cc:3:5)
| | ParseFunctionDefinition (user)
| PerformPendingInstantiations
| | InstantiateFunction (fooA&lt;int&gt;, ./a.h:7)

```</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Reverts llvm/llvm-project#98320

Breaks windows tests:

```
Step 8 (test-build-unified-tree-check-clang-unit) failure: test (failure)
******************** TEST 'Clang-Unit :: Support/./ClangSupportTests.exe/1/3' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\unittests\Support\.\ClangSupportTests.exe-Clang-Unit-4296-1-3.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=3 GTEST_SHARD_INDEX=1 C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\unittests\Support\.\ClangSupportTests.exe
--

Script:
--
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\build\tools\clang\unittests\Support\.\ClangSupportTests.exe --gtest_filter=TimeProfilerTest.TemplateInstantiations
--
C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Support\TimeProfilerTest.cpp(278): error: Expected equality of these values:
  R"(
Frontend
| ParseFunctionDefinition (fooB)
| ParseFunctionDefinition (fooMTA)
| ParseFunctionDefinition (fooA)
| ParseDeclarationOrFunctionDefinition (test.cc:3:5)
| | ParseFunctionDefinition (user)
| PerformPendingInstantiations
| | InstantiateFunction (fooA&lt;int&gt;, ./a.h:7)
| | | InstantiateFunction (fooB&lt;int&gt;, ./b.h:3)
| | | InstantiateFunction (fooMTA&lt;int&gt;, ./a.h:4)
)"
    Which is: "\nFrontend\n| ParseFunctionDefinition (fooB)\n| ParseFunctionDefinition (fooMTA)\n| ParseFunctionDefinition (fooA)\n| ParseDeclarationOrFunctionDefinition (test.cc:3:5)\n| | ParseFunctionDefinition (user)\n| PerformPendingInstantiations\n| | InstantiateFunction (fooA&lt;int&gt;, ./a.h:7)\n| | | InstantiateFunction (fooB&lt;int&gt;, ./b.h:3)\n| | | InstantiateFunction (fooMTA&lt;int&gt;, ./a.h:4)\n"
  buildTraceGraph(Json)
    Which is: "\nFrontend\n| ParseFunctionDefinition (fooB)\n| ParseFunctionDefinition (fooMTA)\n| ParseFunctionDefinition (fooA)\n| ParseDeclarationOrFunctionDefinition (test.cc:3:5)\n| | ParseFunctionDefinition (user)\n| PerformPendingInstantiations\n| | InstantiateFunction (fooA&lt;int&gt;, .\\a.h:7)\n| | | InstantiateFunction (fooB&lt;int&gt;, .\\b.h:3)\n| | | InstantiateFunction (fooMTA&lt;int&gt;, .\\a.h:4)\n"
With diff:
@@ -7,5 +7,5 @@
 | | ParseFunctionDefinition (user)
 | PerformPendingInstantiations
-| | InstantiateFunction (fooA&lt;int&gt;, ./a.h:7)
-| | | InstantiateFunction (fooB&lt;int&gt;, ./b.h:3)
-| | | InstantiateFunction (fooMTA&lt;int&gt;, ./a.h:4)\n
+| | InstantiateFunction (fooA&lt;int&gt;, .\\a.h:7)
+| | | InstantiateFunction (fooB&lt;int&gt;, .\\b.h:3)
+| | | InstantiateFunction (fooMTA&lt;int&gt;, .\\a.h:4)\n



C:\buildbot\as-builder-3\llvm-clang-x86_64-win-fast\llvm-project\clang\unittests\Support\TimeProfilerTest.cpp:278
Expected equality of these values:
  R"(
Frontend
| ParseFunctionDefinition (fooB)
| ParseFunctionDefinition (fooMTA)
| ParseFunctionDefinition (fooA)
| ParseDeclarationOrFunctionDefinition (test.cc:3:5)
| | ParseFunctionDefinition (user)
| PerformPendingInstantiations
| | InstantiateFunction (fooA&lt;int&gt;, ./a.h:7)

```</pre>
</div>
</content>
</entry>
<entry>
<title>Add source file name for template instantiations in -ftime-trace (#98320)</title>
<updated>2024-07-18T14:18:34+00:00</updated>
<author>
<name>Utkarsh Saxena</name>
<email>usx@google.com</email>
</author>
<published>2024-07-18T14:18:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=cd495d2cdd84a22026a115c7e9923c27b196732e'/>
<id>cd495d2cdd84a22026a115c7e9923c27b196732e</id>
<content type='text'>
This is helpful in identifying file and location which contain the particular template declaration.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is helpful in identifying file and location which contain the particular template declaration.</pre>
</div>
</content>
</entry>
<entry>
<title>[llvm] Remove redundant calls to std::unique_ptr&lt;T&gt;::get (NFC) (#97914)</title>
<updated>2024-07-06T23:23:41+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2024-07-06T23:23:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=75bc20ff899753b100cb875ce703af2348a1d6bb'/>
<id>75bc20ff899753b100cb875ce703af2348a1d6bb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Expose TimeTraceProfiler for Async Events (#83778)</title>
<updated>2024-03-19T18:03:18+00:00</updated>
<author>
<name>Takuto Ikuta</name>
<email>tikuta@google.com</email>
</author>
<published>2024-03-19T18:03:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e61922d327c39805a7303586f4b0accf3398c774'/>
<id>e61922d327c39805a7303586f4b0accf3398c774</id>
<content type='text'>
To avoid issue like https://github.com/llvm/llvm-project/issues/56554
and https://github.com/llvm/llvm-project/issues/83236 due to no
guarantees for nested relationships between file level span and syntax
tree level span, I'd like to have a `timeTraceAsyncProfilerBegin`
specific to trace handling only `Source` spans around

https://github.com/llvm/llvm-project/blob/8715f256911786520bb727ce067098d7082ac45c/clang/lib/Sema/Sema.cpp#L153-L170.

This is a preparation PR to do that in [following
PR](https://github.com/llvm/llvm-project/pull/83961).</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To avoid issue like https://github.com/llvm/llvm-project/issues/56554
and https://github.com/llvm/llvm-project/issues/83236 due to no
guarantees for nested relationships between file level span and syntax
tree level span, I'd like to have a `timeTraceAsyncProfilerBegin`
specific to trace handling only `Source` spans around

https://github.com/llvm/llvm-project/blob/8715f256911786520bb727ce067098d7082ac45c/clang/lib/Sema/Sema.cpp#L153-L170.

This is a preparation PR to do that in [following
PR](https://github.com/llvm/llvm-project/pull/83961).</pre>
</div>
</content>
</entry>
<entry>
<title>[support] Prepare TimeProfiler for cross-thread support</title>
<updated>2022-09-16T16:20:18+00:00</updated>
<author>
<name>mbs</name>
<email>mbs@modular.com</email>
</author>
<published>2022-09-16T16:20:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=7061a3f3f89df1d8ae0afc03550da2c4f0dfbe8b'/>
<id>7061a3f3f89df1d8ae0afc03550da2c4f0dfbe8b</id>
<content type='text'>
This NFC prepares the TimeProfiler to support the construction
and completion of time profiling 'entries' across threads.

Add ClockType alias so we can change the clock in one place.
(trivial) Use c++ usings instead of typedefs
Rename Entry to TimeTraceProfilerEntry since this type will eventually become public.
Add an intro comment.
Add some smoke unit tests.

Reviewed By: russell.gallop, rriddle, lattner, jloser

Differential Revision: https://reviews.llvm.org/D133153
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This NFC prepares the TimeProfiler to support the construction
and completion of time profiling 'entries' across threads.

Add ClockType alias so we can change the clock in one place.
(trivial) Use c++ usings instead of typedefs
Rename Entry to TimeTraceProfilerEntry since this type will eventually become public.
Add an intro comment.
Add some smoke unit tests.

Reviewed By: russell.gallop, rriddle, lattner, jloser

Differential Revision: https://reviews.llvm.org/D133153
</pre>
</div>
</content>
</entry>
</feed>
