<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Clojure Q&amp;A - Recent questions in tools.trace</title>
<link>https://ask.clojure.org/index.php/questions/contrib-libs/tools-trace</link>
<description></description>
<item>
<title>Can the clojure.tools.trace reflection warnings be addressed?</title>
<link>https://ask.clojure.org/index.php/10171/can-the-clojure-tools-trace-reflection-warnings-addressed</link>
<description>&lt;p&gt;I frequently see these as part of my daily workflow - which is slightly inconvenient:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Reflection warning, clojure/tools/trace.clj:231:54 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:242:56 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:244:49 - call to java.lang.Exception ctor can't be resolved.
Reflection warning, clojure/tools/trace.clj:244:69 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:256:56 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:259:49 - call to java.lang.Throwable ctor can't be resolved.
Reflection warning, clojure/tools/trace.clj:259:69 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:275:56 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
Reflection warning, clojure/tools/trace.clj:276:68 - call to method setStackTrace on java.lang.Object can't be resolved (no such method).
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Checking out the tools.trace code @ master, these seem tractable.&lt;/p&gt;
&lt;p&gt;Could these reflection warnings be avoided?&lt;/p&gt;
</description>
<category>tools.trace</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/10171/can-the-clojure-tools-trace-reflection-warnings-addressed</guid>
<pubDate>Thu, 11 Feb 2021 18:39:41 +0000</pubDate>
</item>
<item>
<title>Small correction to example use in README - trace-ns requires quoted symbol in latest release 0.7.9</title>
<link>https://ask.clojure.org/index.php/8114/correction-example-readme-requires-symbol-latest-release</link>
<description>&lt;p&gt;While there are unreleased changes to tools.trace to enable a form like this to work:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;(trace-ns myown.namespace)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;the latest released version of tools.trace is 0.7.9, and in that version the above causes an exception to be thrown.  It works if you quote the symbol, like so:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;(trace-ns 'myown.namespace)&lt;/code&gt;&lt;/p&gt;
</description>
<category>tools.trace</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8114/correction-example-readme-requires-symbol-latest-release</guid>
<pubDate>Sat, 08 Sep 2018 14:21:31 +0000</pubDate>
</item>
<item>
<title>Document how to trace non-public fns</title>
<link>https://ask.clojure.org/index.php/8113/document-how-to-trace-non-public-fns</link>
<description>&lt;p&gt;Add an example of how to trace a non-public fn by passing it as a var.&lt;/p&gt;
&lt;p&gt;Especially as a Clojure beginner, this might a very helpful information.&lt;/p&gt;
</description>
<category>tools.trace</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8113/document-how-to-trace-non-public-fns</guid>
<pubDate>Wed, 22 Nov 2017 20:41:25 +0000</pubDate>
</item>
<item>
<title>Add throttling/rate-limiting</title>
<link>https://ask.clojure.org/index.php/8111/add-throttling-rate-limiting</link>
<description>&lt;p&gt;I would like to propose adding several features to tools.trace:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The ability to trottle tracing using several characteristics:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; *  Number of messages logged.
&lt;/code&gt;&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Number of times called.&lt;/li&gt;
&lt;li&gt;Size of output generated&lt;/li&gt;
&lt;li&gt;Times logged in a given period&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The ability to trace &lt;strong&gt;only&lt;/strong&gt; certain calls:&lt;br&gt;
  *  Trace calls to functions with specific values for their argument&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
</description>
<category>tools.trace</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8111/add-throttling-rate-limiting</guid>
<pubDate>Sun, 01 Feb 2015 11:57:30 +0000</pubDate>
</item>
<item>
<title>Use aprint when displaying value</title>
<link>https://ask.clojure.org/index.php/8112/use-aprint-when-displaying-value</link>
<description>&lt;p&gt;Problem: when trace-ns is used, very long displays in the output stream is very hard to read when the fn calls are important and with voluminous data structure&lt;br&gt;
Solution: Use (link: &lt;a rel=&quot;nofollow&quot; href=&quot;https://github.com/razum2um/aprint&quot;&gt;https://github.com/razum2um/aprint&lt;/a&gt; text: Aprint library) when printing value in the output string, now get syntax hightlighting and better layout of data structure&lt;br&gt;
Tradeoffs: add a new dependency to tools.trace&lt;br&gt;
Tests: yes, modify the cleanup fn to also clean the color information added by aprint, so 100% tests passed&lt;/p&gt;
</description>
<category>tools.trace</category>
<guid isPermaLink="true">https://ask.clojure.org/index.php/8112/use-aprint-when-displaying-value</guid>
<pubDate>Wed, 29 Oct 2014 16:09:15 +0000</pubDate>
</item>
</channel>
</rss>