From 5794bc103abddca70e198857260390b896d737a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Thu, 15 Dec 2016 13:30:14 +0100 Subject: percept: Remove application --- lib/percept/doc/html/.gitignore | 0 lib/percept/doc/man3/.gitignore | 0 lib/percept/doc/pdf/.gitignore | 0 lib/percept/doc/src/Makefile | 190 ----------- lib/percept/doc/src/book.xml | 52 --- lib/percept/doc/src/egd_ug.xmlsrc | 90 ----- lib/percept/doc/src/fascicules.xml | 18 - lib/percept/doc/src/img.erl | 50 --- lib/percept/doc/src/img_esi.erl | 25 -- lib/percept/doc/src/img_esi_result.gif | Bin 374 -> 0 bytes lib/percept/doc/src/ipc_tree.erl | 30 -- lib/percept/doc/src/notes.xml | 495 ---------------------------- lib/percept/doc/src/part.xml | 47 --- lib/percept/doc/src/part_notes.xml | 41 --- lib/percept/doc/src/percept_compare.gif | Bin 241343 -> 0 bytes lib/percept/doc/src/percept_examples.html | 11 - lib/percept/doc/src/percept_overview.gif | Bin 158719 -> 0 bytes lib/percept/doc/src/percept_processes.gif | Bin 182273 -> 0 bytes lib/percept/doc/src/percept_processinfo.gif | Bin 135512 -> 0 bytes lib/percept/doc/src/percept_ug.xmlsrc | 223 ------------- lib/percept/doc/src/ref_man.xml | 48 --- lib/percept/doc/src/sorter.erl | 41 --- lib/percept/doc/src/test1.gif | Bin 951 -> 0 bytes lib/percept/doc/src/test2.gif | Bin 1035 -> 0 bytes lib/percept/doc/src/test3.gif | Bin 2382 -> 0 bytes lib/percept/doc/src/test4.gif | Bin 2294 -> 0 bytes lib/percept/doc/stylesheet.css | 39 --- 27 files changed, 1400 deletions(-) delete mode 100644 lib/percept/doc/html/.gitignore delete mode 100644 lib/percept/doc/man3/.gitignore delete mode 100644 lib/percept/doc/pdf/.gitignore delete mode 100644 lib/percept/doc/src/Makefile delete mode 100644 lib/percept/doc/src/book.xml delete mode 100644 lib/percept/doc/src/egd_ug.xmlsrc delete mode 100644 lib/percept/doc/src/fascicules.xml delete mode 100644 lib/percept/doc/src/img.erl delete mode 100644 lib/percept/doc/src/img_esi.erl delete mode 100644 lib/percept/doc/src/img_esi_result.gif delete mode 100644 lib/percept/doc/src/ipc_tree.erl delete mode 100644 lib/percept/doc/src/notes.xml delete mode 100644 lib/percept/doc/src/part.xml delete mode 100644 lib/percept/doc/src/part_notes.xml delete mode 100644 lib/percept/doc/src/percept_compare.gif delete mode 100644 lib/percept/doc/src/percept_examples.html delete mode 100644 lib/percept/doc/src/percept_overview.gif delete mode 100644 lib/percept/doc/src/percept_processes.gif delete mode 100644 lib/percept/doc/src/percept_processinfo.gif delete mode 100644 lib/percept/doc/src/percept_ug.xmlsrc delete mode 100644 lib/percept/doc/src/ref_man.xml delete mode 100644 lib/percept/doc/src/sorter.erl delete mode 100644 lib/percept/doc/src/test1.gif delete mode 100644 lib/percept/doc/src/test2.gif delete mode 100644 lib/percept/doc/src/test3.gif delete mode 100644 lib/percept/doc/src/test4.gif delete mode 100644 lib/percept/doc/stylesheet.css (limited to 'lib/percept/doc') diff --git a/lib/percept/doc/html/.gitignore b/lib/percept/doc/html/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/lib/percept/doc/man3/.gitignore b/lib/percept/doc/man3/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/lib/percept/doc/pdf/.gitignore b/lib/percept/doc/pdf/.gitignore deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/lib/percept/doc/src/Makefile b/lib/percept/doc/src/Makefile deleted file mode 100644 index 2f84d61cbc..0000000000 --- a/lib/percept/doc/src/Makefile +++ /dev/null @@ -1,190 +0,0 @@ -# -# %CopyrightBegin% -# -# Copyright Ericsson AB 2007-2016. All Rights Reserved. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# %CopyrightEnd% -# - -include $(ERL_TOP)/make/target.mk -include $(ERL_TOP)/make/$(TARGET)/otp.mk - -# ---------------------------------------------------- -# Application version -# ---------------------------------------------------- -include ../../vsn.mk -VSN=$(PERCEPT_VSN) -APPLICATION=percept - -# ---------------------------------------------------- -# Release directory specification -# ---------------------------------------------------- -RELSYSDIR = $(RELEASE_PATH)/lib/$(APPLICATION)-$(VSN) - -# ---------------------------------------------------- -# Help application directory specification -# ---------------------------------------------------- - -EDOC_DIR = $(ERL_TOP)/lib/edoc - -# ---------------------------------------------------- -# Target Specs -# ---------------------------------------------------- -PERCEPT_DIR = $(ERL_TOP)/lib/$(APPLICATION)/src -RUNTIME_TOOLS_DIR = $(ERL_TOP)/lib/runtime_tools/src - -PERCEPT_MODULES = \ - egd\ - percept - -RUNTIME_TOOLS_MODULES = \ - percept_profile - -XML_APPLICATION_FILES = \ - ref_man.xml - -PERCEPT_XML_FILES = $(PERCEPT_MODULES:=.xml) - -RUNTIME_TOOLS_XML_FILES = $(RUNTIME_TOOLS_MODULES:=.xml) - -MODULE_XML_FILES = $(PERCEPT_XML_FILES) $(RUNTIME_TOOLS_XML_FILES) - -XML_REF_MAN = \ - ref_man.xml - -XML_REF3_FILES = $(MODULE_XML_FILES) - -XML_PART_FILES = \ - part.xml \ - part_notes.xml - -XML_REF6_FILES = - -XML_CHAPTER_FILES = \ - notes.xml \ - egd_ug.xml \ - percept_ug.xml - -GEN_XML = \ - egd_ug.xml \ - percept_ug.xml - -BOOK_FILES = book.xml - -XML_FILES = \ - $(BOOK_FILES) $(XML_CHAPTER_FILES) \ - $(XML_PART_FILES) $(XML_REF3_FILES) $(XML_REF_MAN) - -HTML_EXAMPLE_FILES = \ - percept_examples.html - -HTML_STYLESHEET_FILES = \ - ../stylesheet.css - - -GIF_FILES = \ - test1.gif \ - test2.gif \ - test3.gif \ - test4.gif \ - percept_overview.gif \ - percept_processes.gif \ - percept_processinfo.gif \ - percept_compare.gif \ - img_esi_result.gif - -# ---------------------------------------------------- -INFO_FILE = ../../info - -HTML_FILES = \ - $(XML_REF_MAN:%.xml=$(HTMLDIR)/%.html) \ - $(XML_PART_FILES:%.xml=$(HTMLDIR)/%.html) - -MAN3_FILES = $(XML_REF3_FILES:%.xml=$(MAN3DIR)/%.3) -MAN6_FILES = $(XML_REF6_FILES:%_app.xml=$(MAN6DIR)/%.6) - - -HTML_REF_MAN_FILE = $(HTMLDIR)/index.html - -TOP_PDF_FILE = $(PDFDIR)/$(APPLICATION)-$(VSN).pdf - - -# ---------------------------------------------------- -# FLAGS -# ---------------------------------------------------- -XML_FLAGS += - -# ---------------------------------------------------- -# Targets -# ---------------------------------------------------- -$(HTMLDIR)/%.gif: %.gif - $(INSTALL_DATA) $< $@ - -docs: pdf html man - -$(TOP_PDF_FILE): $(XML_FILES) - -pdf: $(TOP_PDF_FILE) - -html: gifs $(HTML_REF_MAN_FILE) - -clean clean_docs: - rm -f $(MODULE_XML_FILES) $(GEN_XML) - rm -rf $(HTMLDIR)/* - rm -f $(MAN3DIR)/* - rm -f $(TOP_PDF_FILE) $(TOP_PDF_FILE:%.pdf=%.fo) - rm -f errs core *~ - -man: $(MAN3_FILES) $(MAN6_FILES) - -gifs: $(GIF_FILES:%=$(HTMLDIR)/%) - -xml: $(MODULE_XML_FILES) - -$(PERCEPT_XML_FILES): - escript $(DOCGEN)/priv/bin/xml_from_edoc.escript $(PERCEPT_DIR)/$(@:%.xml=%.erl) - -$(RUNTIME_TOOLS_XML_FILES): - escript $(DOCGEN)/priv/bin/xml_from_edoc.escript $(RUNTIME_TOOLS_DIR)/$(@:%.xml=%.erl) - -info: - @echo "XML_PART_FILES: $(XML_PART_FILES)" - @echo "XML_APPLICATION_FILES: $(XML_APPLICATION_FILES)" - @echo "PERCEPT_XML_FILES: $(MODULE_XML_FILES)" - @echo "PERCEPT_MODULES: $(PERCEPT_MODULES)" - @echo "HTML_FILES: $(HTML_FILES)" - @echo "HTMLDIR: $(HTMLDIR)" - - -debug opt: - -# ---------------------------------------------------- -# Release Target -# ---------------------------------------------------- -include $(ERL_TOP)/make/otp_release_targets.mk - -release_docs_spec: docs - $(INSTALL_DIR) "$(RELSYSDIR)/doc/pdf" - $(INSTALL_DATA) $(TOP_PDF_FILE) "$(RELSYSDIR)/doc/pdf" - $(INSTALL_DIR) "$(RELSYSDIR)/doc/html" - $(INSTALL_DATA) $(HTML_EXAMPLE_FILES) $(HTML_STYLESHEET_FILES) \ - $(HTMLDIR)/* \ - "$(RELSYSDIR)/doc/html" - $(INSTALL_DATA) $(INFO_FILE) "$(RELSYSDIR)" - $(INSTALL_DIR) "$(RELEASE_PATH)/man/man3" - $(INSTALL_DATA) $(MAN3DIR)/* "$(RELEASE_PATH)/man/man3" - -release_spec: - diff --git a/lib/percept/doc/src/book.xml b/lib/percept/doc/src/book.xml deleted file mode 100644 index 5acba1f214..0000000000 --- a/lib/percept/doc/src/book.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - -
- - 2007 - 2016 - Ericsson AB, All Rights Reserved - - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - The Initial Developer of the Original Code is Ericsson AB. - - - Percept - Björn-Egil Dahlberg - - 2007-11-02 - 0.5.0 - book.xml -
- - - Percept - - - - - - - - - - - - - - -
- diff --git a/lib/percept/doc/src/egd_ug.xmlsrc b/lib/percept/doc/src/egd_ug.xmlsrc deleted file mode 100644 index 85d41ada79..0000000000 --- a/lib/percept/doc/src/egd_ug.xmlsrc +++ /dev/null @@ -1,90 +0,0 @@ - - - - -
- - 2007 - 2016 - Ericsson AB, All Rights Reserved - - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - The Initial Developer of the Original Code is Ericsson AB. - - - egd - Björn-Egil Dahlberg - - 2007-11-03 - A - egd_ug.xml -
-
- Introduction -

- The egd module is an interface for 2d-image rendering and is used by - Percept to generate dynamic graphs to its web pages. All code is pure - erlang, no drivers needed. -

-

- The library is intended for small to medium image sizes with low - complexity for optimal performance. The library handles horizontal - lines better then vertical lines. -

-

- The foremost purpose for this module is to enable users to - generate images from erlang code and/or datasets and to - send these images to either files or web servers. -

-
-
- File example -

Drawing examples:

- -

First save.

- - test1.png - - -

Second save.

- - test2.png - - -

Third save.

- - test3.png - - -

Fourth save.

- - test4.png - -
-
- ESI example -

Using egd with inets ESI to generate images on the fly:

- - - Example of result. - -

- For more information regarding ESI, please see inets application - mod_esi. -

-
-
- - diff --git a/lib/percept/doc/src/fascicules.xml b/lib/percept/doc/src/fascicules.xml deleted file mode 100644 index 37feca543f..0000000000 --- a/lib/percept/doc/src/fascicules.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - User's Guide - - - Reference Manual - - - Release Notes - - - Off-Print - - - diff --git a/lib/percept/doc/src/img.erl b/lib/percept/doc/src/img.erl deleted file mode 100644 index 8f3bd3839f..0000000000 --- a/lib/percept/doc/src/img.erl +++ /dev/null @@ -1,50 +0,0 @@ --module(img). - --export([do/0]). - -do() -> - Im = egd:create(200,200), - Red = egd:color({255,0,0}), - Green = egd:color({0,255,0}), - Blue = egd:color({0,0,255}), - Black = egd:color({0,0,0}), - Yellow = egd:color({255,255,0}), - - % Line and fillRectangle - - egd:filledRectangle(Im, {20,20}, {180,180}, Red), - egd:line(Im, {0,0}, {200,200}, Black), - - egd:save(egd:render(Im, png), "/home/egil/test1.png"), - - egd:filledEllipse(Im, {45, 60}, {55, 70}, Yellow), - egd:filledEllipse(Im, {145, 60}, {155, 70}, Blue), - - egd:save(egd:render(Im, png), "/home/egil/test2.png"), - - R = 80, - X0 = 99, - Y0 = 99, - - Pts = [ { X0 + trunc(R*math:cos(A*math:pi()*2/360)), - Y0 + trunc(R*math:sin(A*math:pi()*2/360)) - } || A <- lists:seq(0,359,5)], - lists:map( - fun({X,Y}) -> - egd:rectangle(Im, {X-5, Y-5}, {X+5,Y+5}, Green) - end, Pts), - - egd:save(egd:render(Im, png), "/home/egil/test3.png"), - - % Text - Filename = filename:join([code:priv_dir(percept), "fonts", "6x11_latin1.wingsfont"]), - Font = egd_font:load(Filename), - {W,H} = egd_font:size(Font), - String = "egd says hello", - Length = length(String), - - egd:text(Im, {round(100 - W*Length/2), 200 - H - 5}, Font, String, Black), - - egd:save(egd:render(Im, png), "/home/egil/test4.png"), - - egd:destroy(Im). diff --git a/lib/percept/doc/src/img_esi.erl b/lib/percept/doc/src/img_esi.erl deleted file mode 100644 index e9796819c0..0000000000 --- a/lib/percept/doc/src/img_esi.erl +++ /dev/null @@ -1,25 +0,0 @@ --module(img_esi). - --export([image/3]). - -image(SessionID, _Env, _Input) -> - mod_esi:deliver(SessionID, header()), - Binary = my_image(), - mod_esi:deliver(SessionID, binary_to_list(Binary)). - -my_image() -> - Im = egd:create(300,20), - Black = egd:color({0,0,0}), - Red = egd:color({255,0,0}), - egd:filledRectangle(Im, {30,14}, {270,19}, Red), - egd:rectangle(Im, {30,14}, {270,19}, Black), - - Filename = filename:join([code:priv_dir(percept), "fonts", "6x11_latin1.wingsfont"]), - Font = egd_font:load(Filename), - egd:text(Im, {30, 0}, Font, "egd with esi callback", Black), - Bin = egd:render(Im, png), - egd:destroy(Im), - Bin. - -header() -> - "Content-Type: image/png\r\n\r\n". diff --git a/lib/percept/doc/src/img_esi_result.gif b/lib/percept/doc/src/img_esi_result.gif deleted file mode 100644 index 6973392998..0000000000 Binary files a/lib/percept/doc/src/img_esi_result.gif and /dev/null differ diff --git a/lib/percept/doc/src/ipc_tree.erl b/lib/percept/doc/src/ipc_tree.erl deleted file mode 100644 index 89360379c6..0000000000 --- a/lib/percept/doc/src/ipc_tree.erl +++ /dev/null @@ -1,30 +0,0 @@ --module(ipc_tree). --export([go/1, init/2]). - -go(N) -> - start(N, self()), - receive {_,stop} -> ok end. - -start(Depth, ParentPid) -> - spawn(?MODULE, init, [Depth, ParentPid]). - -init(0, ParentPid) -> - workload(5000), - ParentPid ! {self(),stop}, - ok; -init(Depth, ParentPid) -> - Pid1 = spawn(?MODULE, init, [Depth - 1, self()]), - Pid2 = spawn(?MODULE, init, [Depth - 1, self()]), - main([Pid1,Pid2], ParentPid). - -main(Pids, ParentPid) -> - workload(5000), - gather(Pids), - ParentPid ! {self(),stop}, - ok. - -gather([]) -> ok; -gather([Pid|Pids]) -> receive {Pid,stop} -> gather(Pids) end. - -workload(0) -> ok; -workload(N) -> math:sin(2), workload(N - 1). diff --git a/lib/percept/doc/src/notes.xml b/lib/percept/doc/src/notes.xml deleted file mode 100644 index c9d5d3ae29..0000000000 --- a/lib/percept/doc/src/notes.xml +++ /dev/null @@ -1,495 +0,0 @@ - - - - -
- - 2007 - 2016 - Ericsson AB, All Rights Reserved - - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - The Initial Developer of the Original Code is Ericsson AB. - - - Percept Release Notes - otp_appnotes - nil - nil - nil - notes.xml -
-

This document describes the changes made to the Percept application.

- -
Percept 0.9 - -
Fixed Bugs and Malfunctions - - -

- Remove deprecated erlang:now/0 calls

-

- Own Id: OTP-13422

-
-
-
- - -
Improvements and New Features - - -

- Improve line implementation

-

- Add capabilities for line thickness and anti-aliasing.

-

- Own Id: OTP-13598

-
-
-
- -
- -
Percept 0.8.11 - -
Fixed Bugs and Malfunctions - - -

- Fix http server configuration

-

- Own Id: OTP-12662

-
-
-
- -
- -
Percept 0.8.10 - -
Fixed Bugs and Malfunctions - - -

- Make sure to install .hrl files when needed

-

- Own Id: OTP-12197

-
-
-
- -
- -
Percept 0.8.9 - -
Fixed Bugs and Malfunctions - - -

- Application upgrade (appup) files are corrected for the - following applications:

-

- asn1, common_test, compiler, crypto, debugger, - dialyzer, edoc, eldap, erl_docgen, et, eunit, gs, hipe, - inets, observer, odbc, os_mon, otp_mibs, parsetools, - percept, public_key, reltool, runtime_tools, ssh, - syntax_tools, test_server, tools, typer, webtool, wx, - xmerl

-

- A new test utility for testing appup files is added to - test_server. This is now used by most applications in - OTP.

-

- (Thanks to Tobias Schlager)

-

- Own Id: OTP-11744

-
-
-
- -
- -
Percept 0.8.8.2 - -
Improvements and New Features - - -

- The encoding of the notes.xml file has been - changed from latin1 to utf-8 to avoid future merge - problems.

-

- Own Id: OTP-11310

-
-
-
- -
- -
Percept 0.8.8.1 - -
Improvements and New Features - - -

Postscript files no longer needed for the generation - of PDF files have been removed.

-

- Own Id: OTP-11016

-
-
-
- -
- -
Percept 0.8.8 - -
Improvements and New Features - - -

- Misc build updates

-

- Own Id: OTP-10784

-
-
-
- -
- -
Percept 0.8.7 - -
Fixed Bugs and Malfunctions - - -

- Add missing modules in app-file

-

- Own Id: OTP-10439

-
-
-
- -
- -
Percept 0.8.6.1 - -
Improvements and New Features - - -

- Miscellaneous documentation build updates

-

- Own Id: OTP-9813

-
-
-
- -
- -
Percept 0.8.6 - -
Fixed Bugs and Malfunctions - - -

- Fix message handling in select requests

-

- percept_db used to send results in untagged messages, and - use a non selective receive to extract them. When percept - is used from the shell process, this can confuse other - messages with the actual result.

-

- Add a tag to the message to be {result, Result}. Add - demonitor to avoid keeping DOWN message in the queue fix - one spec in do_start/0

-

- (Thanks to Ahmed Omar)

-

- Own Id: OTP-9490

-
-
-
- -
- -
Percept 0.8.5 - -
Fixed Bugs and Malfunctions - - -

Fixes a race condition found in percept_db start/1 - function. (Thanks to Ahmed Omar)

-

- Own Id: OTP-9012

-
-
-
- -
- -
Percept 0.8.4 - -
Fixed Bugs and Malfunctions - - -

- Fix egd_render transparent to use float constants.

-

- The render engine has float guards to enhance beam code - generation. However, the default case used integers which - caused the engine to crash. This is now fixed.

-

- Own Id: OTP-8425

-
-
-
- - -
Improvements and New Features - - -

The documentation is now possible to build in an open - source environment after a number of bugs are fixed and - some features are added in the documentation build - process.

-

- The arity calculation is updated.

-

- The module prefix used in the function names for - bif's are removed in the generated links so the links - will look like - "http://www.erlang.org/doc/man/erlang.html#append_element-2" - instead of - "http://www.erlang.org/doc/man/erlang.html#erlang:append_element-2".

-

- Enhanced the menu positioning in the html - documentation when a new page is loaded.

-

- A number of corrections in the generation of man - pages (thanks to Sergei Golovan)

-

- The legal notice is taken from the xml book file so - OTP's build process can be used for non OTP - applications.

-

- Own Id: OTP-8343

-
- -

- Cleanups suggested by tidier and modernization of types - and specs.

-

- Own Id: OTP-8455

-
-
-
- -
- -
Percept 0.8.3 - -
Improvements and New Features - - -

- The documentation is now built with open source tools - (xsltproc and fop) that exists on most platforms. One - visible change is that the frames are removed.

-

- Own Id: OTP-8201

-
-
-
- -
- -
Percept 0.8.2 - -
Improvements and New Features - - -

- Extensions to egd:color/1 for using atoms as color - definition in addition to rgb triplets.

-

- Own Id: OTP-7975

-
-
-
- -
- -
Percept 0.8.1 - -
Improvements and New Features - - -

egd now supports encapsulated postscript output - format.

-

- Own Id: OTP-7923

-
-
-
- -
- -
Percept 0.8 - -
Fixed Bugs and Malfunctions - - -

A problem with options list to percept causing some - options to be disregarded unintentionally. This has now - been fixed.

An error in percept_analyzer - caused calculation of standard deviation to be incorrect. - This has now been corrected.

-

- Own Id: OTP-7693

-
-
-
- - -
Improvements and New Features - - -

Updated css for percept server for enhanced - viewing.

Increased performance of egd render.

-

Several graph errors could occur when compacting data - to decrease graph rendering time causing incorrect - scalability numbers. These errors have now been - fixed.

Increased viewing width for graphs. The - viewing width is now dependent on client screen - resolution.

-

- Own Id: OTP-7696

-
-
-
- -
-
Percept 0.7.3 - -
Fixed Bugs and Malfunctions - - -

External pids caused the webserver to crash. This has - now been fixed.

-

- Own Id: OTP-7515 Aux Id: seq11004

-
- -

Fixed a timestamp problem where some events could be - sent out of order. Minor fixes to presentation of - data.

-

- Own Id: OTP-7544 Aux Id: otp-7442

-
-
-
- - -
Improvements and New Features - - -

Performance enhancement for the egd render engine - (Thanks to Magnus Thoäng).

-

- Own Id: OTP-7616

-
-
-
- -
- -
Percept 0.7.2 - -
Fixed Bugs and Malfunctions - - -

Calling egd:destroy/1 did not properly remove - the process holding the image.

-

Synchronous calls done via the egd interface could - erroneous receive messages not intended for egd. Messages - are now tagged in such a way so this should not - occur.

-

- Own Id: OTP-7336

-
-
-
- -
- -
Percept 0.7.1 - -
Fixed Bugs and Malfunctions - - -

- Fixed out of bounds rendering problem in egd which could - cause the rendering process to crash.

-

- Own Id: OTP-7215

-
-
-
- -
- -
Percept 0.7 - -
Improvements and New Features - - -

Percept no longer depends on external c-libraries. The - graphical rendering is now done via erlang code.

-

- Own Id: OTP-7162

-
-
-
- -
- -
Percept 0.6.2 - -
Improvements and New Features - - -

- A new module, percept_profile, can now be used to collect - profiling data even if the percept application is not - installed. This should help profiling erlang application - on target machines without libgd installed.

-

- Own Id: OTP-7126

-
-
-
- -
- -
- Percept 0.5.0 -
First Release - - -

- First Release. -

-

Own Id: OTP-6783

-
-
-
-
-
- diff --git a/lib/percept/doc/src/part.xml b/lib/percept/doc/src/part.xml deleted file mode 100644 index 277d89d45c..0000000000 --- a/lib/percept/doc/src/part.xml +++ /dev/null @@ -1,47 +0,0 @@ - - - - -
- - 2007 - 2016 - Ericsson AB, All Rights Reserved - - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - The Initial Developer of the Original Code is Ericsson AB. - - - Percept User's Guide - Björn-Egil Dahlberg - - 2007-11-02 - 0.5.0 - part.xml -
- -

- Percept is an acronym for Percept - erlang - concurrency profiling tool. -

-

- It is a tool to visualize application level concurrency and - identify concurrency bottlenecks. -

-
- - -
- diff --git a/lib/percept/doc/src/part_notes.xml b/lib/percept/doc/src/part_notes.xml deleted file mode 100644 index f428b4fd81..0000000000 --- a/lib/percept/doc/src/part_notes.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - -
- - 2007 - 2016 - Ericsson AB, All Rights Reserved - - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - The Initial Developer of the Original Code is Ericsson AB. - - - Percept Release Notes - Björn-Egil Dahlberg - - >2007-11-02 - - part_notes.xml -
- -

- The Percept application. -

-
- -
- diff --git a/lib/percept/doc/src/percept_compare.gif b/lib/percept/doc/src/percept_compare.gif deleted file mode 100644 index 1c8ccf0186..0000000000 Binary files a/lib/percept/doc/src/percept_compare.gif and /dev/null differ diff --git a/lib/percept/doc/src/percept_examples.html b/lib/percept/doc/src/percept_examples.html deleted file mode 100644 index df2f52bdfd..0000000000 --- a/lib/percept/doc/src/percept_examples.html +++ /dev/null @@ -1,11 +0,0 @@ - - - -Customization functions - - - -

Customization functions

- - diff --git a/lib/percept/doc/src/percept_overview.gif b/lib/percept/doc/src/percept_overview.gif deleted file mode 100644 index 12ac172472..0000000000 Binary files a/lib/percept/doc/src/percept_overview.gif and /dev/null differ diff --git a/lib/percept/doc/src/percept_processes.gif b/lib/percept/doc/src/percept_processes.gif deleted file mode 100644 index 640ff50ee2..0000000000 Binary files a/lib/percept/doc/src/percept_processes.gif and /dev/null differ diff --git a/lib/percept/doc/src/percept_processinfo.gif b/lib/percept/doc/src/percept_processinfo.gif deleted file mode 100644 index 00cc05f5c9..0000000000 Binary files a/lib/percept/doc/src/percept_processinfo.gif and /dev/null differ diff --git a/lib/percept/doc/src/percept_ug.xmlsrc b/lib/percept/doc/src/percept_ug.xmlsrc deleted file mode 100644 index 0d243cdabe..0000000000 --- a/lib/percept/doc/src/percept_ug.xmlsrc +++ /dev/null @@ -1,223 +0,0 @@ - - - - -
- - 2007 - 2016 - Ericsson AB, All Rights Reserved - - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - The Initial Developer of the Original Code is Ericsson AB. - - - Percept - Björn-Egil Dahlberg - - 2007-11-02 - A - percept_ug.xml -
-

- Percept, or Percept - Erlang Concurrency Profiling Tool, utilizes trace - informations and profiler events to form a picture of the processes's and - ports runnability. -

- -
- Introduction -

- Percept uses erlang:trace/3 and erlang:system_profile/2 to monitor events from - process states. Such states are,

- - waiting - running - runnable - free - exiting - -

- There are some other states too, suspended, hibernating, and - garbage collecting (gc). The only ignored state is gc and a process is considered to have - its previous state through out the entire garbage collecting phase. The main reason for this, is that our - model considers the gc as a third state neither active nor inactive. -

-

- A waiting or suspended process is considered an inactive process and a running or - runnable process is considered an active process. -

-

- Events are collected and stored to a file. The file can be moved and - analyzed on a different machine than the target machine. -

-

- Note, even if percept is not installed on your target machine, profiling - can still be done via the module percept_profile - located in runtime_tools. -

-
-
- Getting started -
- Profiling -

- There are a few ways to start the profiling of a specific code. The - command percept:profile/3 is a preferred way. -

-

- The command takes a filename for the data destination file as first - argument, a callback entry-point as second argument and a - list of specific profiler options, for instance procs, as third - argument. -

-

- Let's say we have a module called example that initializes our - profiling-test and let it run under some defined manner designed by ourself. - The module needs a start function, let's call it go and it takes zero arguments. - The start arguments would look like: -

-

percept:profile("test.dat", {test, go, []}, [procs]).

-

- For a semi-real example we start a tree of processes that does sorting - of random numbers. In our model below we use a controller process that - distributes work to different client processes. -

- -

We can now start our test using percept:

-
-Erlang (BEAM) emulator version 5.6 [async-threads:0] [kernel-poll:false]
-
-Eshell V5.6  (abort with ^G)
-1> percept:profile("test.dat", {sorter, go, [5, 2000, 15]}, [procs]).
-Starting profiling.
-ok
-    
-

- Percept sets up the trace and profiling facilities to listen for process - specific events. It then stores these events to the test.dat - file. The profiling will go on for the whole duration until - sorter:go/3 returns and the profiling has concluded. -

-
-
- Data viewing -

- To analyze this file, use percept:analyze("test.dat"). We can do - this on any machine with Percept installed. The command will parse the - data file and insert all events in a RAM database, percept_db. The - initial command will only prompt how many processes were involved in the - profile. -

-
-2> percept:analyze("test.dat").                                      
-Parsing: "test.dat" 
-Parsed 428 entries in 3.81310e-2 s.
-    17 created processes.
-    0 opened ports.
-ok
-     
-

- To view the data we start the web-server using - percept:start_webserver/1. The command will return the hostname - and the a port where we should direct our favorite web browser. -

-
-3> percept:start_webserver(8888).
-{started,"durin",8888}
-4> 
-     
-
- Overview selection -

- Now we can view our data. The database has its content from - percept:analyze/1 command and the webserver is started. -

-

- When we click on the overview button in the menu percept will - generate a graph of the concurrency and send it to our web browser. In this - view we get no details but rather the big picture. We can see if - our processes behave in an inefficient manner. Dips in the graph represents - low concurrency in the erlang system. -

-

- We can zoom in on different areas of the graph either using the mouse - to select an area or by specifying min and max ranges in the edit boxes. -

- -

Measured time is presented in seconds if nothing else is stated.

-
- - Overview selection - -
-
- Processes selection -

- To get a more detailed description we can select the process view by - clicking the processes button in the menu. -

-

- The table shows process id's that are click-able and direct you to - the process information page, a lifetime bar that presents a rough estimate - in green color about when the process was alive during profiling, an - entry-point, its registered name if it had one and the process's - parent id. -

-

- We can select which processes we want to compare and then hit the - compare button on the top right of the screen. -

- - Processes selection - -
-
- Compare selection -

- The activity bar under the concurrency graph shows each process's - runnability. The color green shows when a process is active (which is - running or runnable) and the white color represents time when a - process is inactive (waiting in a receive or is suspended). -

-

- To inspect a certain process click on the process id button, this will - direct you to a process information page for that specific process. -

- - Processes compare selection - -
-
- Process information selection -

- Here we can some general information for the process. Parent and - children processes, spawn and exit times, entry-point and start arguments. -

-

- We can also see the process' inactive times. How many times it has - been waiting, statistical information and most importantly in which - function. -

-

- The time percentages presented in process information are of time spent in waiting, not total run time. -

- - Process information selection - -
-
-
-
diff --git a/lib/percept/doc/src/ref_man.xml b/lib/percept/doc/src/ref_man.xml deleted file mode 100644 index 143312489b..0000000000 --- a/lib/percept/doc/src/ref_man.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - -
- - 2007 - 2016 - Ericsson AB, All Rights Reserved - - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - - The Initial Developer of the Original Code is Ericsson AB. - - - Percept Reference Manual - Edoc - - 2007-11-02 - 1.0 - ref_man.xml -
- -

- Percept is an acronym for Percept - erlang - concurrency profiling tool. -

-

- It is a tool to visualize application level concurrency and - identify concurrency bottlenecks. -

-
- - - -
- diff --git a/lib/percept/doc/src/sorter.erl b/lib/percept/doc/src/sorter.erl deleted file mode 100644 index 8d5f2c715c..0000000000 --- a/lib/percept/doc/src/sorter.erl +++ /dev/null @@ -1,41 +0,0 @@ --module(sorter). --export([go/3,loop/0,main/4]). - -go(I,N,M) -> - spawn(?MODULE, main, [I,N,M,self()]), - receive done -> ok end. - -main(I,N,M,Parent) -> - Pids = lists:foldl( - fun(_,Ps) -> - [ spawn(?MODULE,loop, []) | Ps] - end, [], lists:seq(1,M)), - - lists:foreach( - fun(_) -> - send_work(N,Pids), - gather(Pids) - end, lists:seq(1,I)), - - lists:foreach( - fun(Pid) -> - Pid ! {self(), quit} - end, Pids), - - gather(Pids), Parent ! done. - -send_work(_,[]) -> ok; -send_work(N,[Pid|Pids]) -> - Pid ! {self(),sort,N}, - send_work(round(N*1.2),Pids). - -loop() -> - receive - {Pid, sort, N} -> dummy_sort(N),Pid ! {self(), done},loop(); - {Pid, quit} -> Pid ! {self(), done} - end. - -dummy_sort(N) -> lists:sort([ random:uniform(N) || _ <- lists:seq(1,N)]). - -gather([]) -> ok; -gather([Pid|Pids]) -> receive {Pid, done} -> gather(Pids) end. diff --git a/lib/percept/doc/src/test1.gif b/lib/percept/doc/src/test1.gif deleted file mode 100644 index 70a519d8e3..0000000000 Binary files a/lib/percept/doc/src/test1.gif and /dev/null differ diff --git a/lib/percept/doc/src/test2.gif b/lib/percept/doc/src/test2.gif deleted file mode 100644 index f18e1f9e58..0000000000 Binary files a/lib/percept/doc/src/test2.gif and /dev/null differ diff --git a/lib/percept/doc/src/test3.gif b/lib/percept/doc/src/test3.gif deleted file mode 100644 index c7581f19aa..0000000000 Binary files a/lib/percept/doc/src/test3.gif and /dev/null differ diff --git a/lib/percept/doc/src/test4.gif b/lib/percept/doc/src/test4.gif deleted file mode 100644 index e7d52c08a3..0000000000 Binary files a/lib/percept/doc/src/test4.gif and /dev/null differ diff --git a/lib/percept/doc/stylesheet.css b/lib/percept/doc/stylesheet.css deleted file mode 100644 index 24d8a02145..0000000000 --- a/lib/percept/doc/stylesheet.css +++ /dev/null @@ -1,39 +0,0 @@ -/* - * %CopyrightBegin% - * - * Copyright Ericsson AB 2007-2016. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * %CopyrightEnd% - */ - -BODY {color: #000000; - background-color: #ffffff; - margin-left: .4in} -H1 {margin-left: -.4in} -H2 {margin-left: -.4in} -H3 {margin-left: -.2in} -.logo{float:right;} -.toc UL { - list-style-type: none; - border: solid; - border-width: thin; - padding-left: 10px; - padding-right: 10px; - padding-top: 5px; - padding-bottom: 5px; - background: #f0f0f0; - letter-spacing: 2px; - line-height: 20px; -} -- cgit v1.2.3