Add new stuff

This commit is contained in:
ViktorBarzin 2018-02-14 00:00:02 +00:00
parent 69661de82f
commit 07744f6823
333 changed files with 1989 additions and 6 deletions

View file

@ -0,0 +1,57 @@
language: r
r:
- release
#- devel
branches:
only:
- master
- develop
sudo: false
addons:
apt:
packages:
- vim
- ruby
- python-matplotlib
# - r-base
# - r-base-dev
branches:
only:
- master
- travis
install:
# Install vim plugins
- curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- cp .travis/vimrc ~/.vimrc
- vim -u ~/.vimrc +PlugInstall +qall
before_script:
- mkdir -p ~/R/library
- export R_LIBS_USER="~/R/library/"
cache:
directories:
- $TRAVIS_BUILD_DIR/packrat/src
- $TRAVIS_BUILD_DIR/packrat/lib
- $R_LIBS_USER
packages: true
script:
- vim --version
- python --version
- ruby --version
- R --version
- python ./vim-plugins-profile.py vim -u NONE
- python ./vim-plugins-profile.py vim -u .travis/vimrc
- python ./vim-plugins-profile.py -n 5 vim -u .travis/vimrc
- python ./vim-plugins-profile.py -n 5 -r 10 vim -u .travis/vimrc
- python ./vim-plugins-profile.py -s vim -N -u NORC
- ruby ./vim-plugins-profile.rb
- yes | bash vim-plugins-profile.sh
#- find ~/R/
#- ls -laR ~/R/

View file

@ -0,0 +1,18 @@
set nocompatible
call plug#begin('~/.vim/plugged')
" Add a bunch of random plugins
Plug 'tpope/vim-surround'
Plug 'tomtom/tcomment_vim'
Plug 'tpope/vim-fugitive'
Plug 'octol/vim-cpp-enhanced-highlight'
Plug 'ervandew/supertab'
Plug 'jiangmiao/auto-pairs'
" UltiSnips requires Vim >= 7.4
if v:version > 703
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
endif
call plug#end()

View file

@ -0,0 +1,674 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

View file

@ -0,0 +1,124 @@
[![Build Status](https://api.travis-ci.org/hyiltiz/vim-plugins-profile.svg?branch=master)](https://travis-ci.org/hyiltiz/vim-plugins-profile) [![Stories in Ready](https://badge.waffle.io/hyiltiz/vim-plugins-profile.png?label=ready&title=Ready)](http://waffle.io/hyiltiz/vim-plugins-profile)
Here is a screenshot to have a quick look at what this is all about.
![My Plugins Profile](./test/result.png)
Here is a peek at the profiling result for my plugins:
```
Generating vim startup profile...
Parsing vim startup profile...
Crunching data and generating profile plot ...
Your plugins startup profile graph is saved
as `profile.png` under current directory.
==========================================
Top 10 Plugins That Slows Down Vim Startup
==========================================
1 105.13 "vim-colorschemes"
2 42.661 "vim-easytags"
3 31.173 "vim-vendetta"
4 22.02 "syntastic"
5 13.362 "vim-online-thesaurus"
6 7.888 "vim-easymotion"
7 6.931 "vim-airline"
8 6.608 "YankRing.vim"
9 5.266 "nerdcommenter"
10 5.017 "delimitMate"
==========================================
Done!
```
## Story
If you use `vim-plug` (or other amazing plugin manager of your choice) to install
your vim (gvim or macvim) plugins, then chances are high that it gets
addictive. You will find yourself with several dozens of useful plugins.
`vim-plug` (and `NeoBundle`) offers you to load your plugins on-demand (lazy-loading). But
which needs fine tuning? Well, using vim's built-in profiling `vim
--startuptime` you can get a timing for all function calls during
startup. However, the data is for each functions. You will have to
figure out the math, and make sure those functions calls are form the
same plugins. Even some sorting might help, but sorting the timing for
each functions does not really make sense because it is really time of the
plugins (but not the functions) that you really care about.
I am poor at doing mental math, even for simple sums. However, with the power
of a simple bash script and `R`, we can get all we want.
This utility automatically detects your plugins directory, and does the
rest of the hard work for you.
### Supported Plugin-Managers
Here is the list of supported managers. Hopefully, your favourite plugin manager is among the list. If not, or if you prefer to manage your own plguins (using symlinks, of course), we could still adjust the code.
- [vim-plug]
- [NeoBundle]
- [Vundle]
- [Pathogen]
### Installation
This is *NOT* a vim plugin! This is simply a profiler for your vim
plugins that are installed through various plugin managers such as
`vim-plug`.
Download the `.zip` [here][zip] and then simply run the bash script:
```BASH
bash ./vim-plugins-profile.sh
# Alternatively use Ruby powers! Less dependency, graph with ASCII art
ruby ./vim-plugins-profile.rb
# Or python if you are from the other camp.
python vim-profiler.py
python vim-profiler.py -p # plot a bar chart
# To use an alternative executable such as neovim, pass it as the first argument.
ruby ./vim-plugins-profile.rb nvim
```
Then open the `profile.png` file for the result! It is that simple.
### Dependency
*Nothing*. Well, at least `Bash` or `Ruby` or `Python`, but most systems already comes with all those pre-installed already.
If not (e.g. in M\$ Windows systems), then you will need to install several tools before you can run this.
- Bash (Cygwin, or Git for Windows will also work)
- Ruby 2.3 (other version might as well just work. If not, you can repurt an Issue then I'll fix it)
To produce the eye-candy graphs, you can use either `R` or `Python`.
For `R`, the script prompts whether it should install the `R:ggplot2` package if you already have `R`. Here are the list of dependencies for it:
- [R]
- [R:ggplot2] (the ggplot2 package for R)
For `Python`, you can use either `python2` or `python3`. If you have
`matplotlib` (optional) installed, then you can even generate the bar plot.
Implementation for people from the python camp is merged from [@bchretien](https://github.com/bchretien/vim-profiler). It also supports a custom command to run in the exec mode. Feel free to hack your way!
### TODO
- Maybe optionally use `gnuplot` or `matplotlib` instead of `R:ggplot2` if any of the other two are installed already.
[zip]: https://github.com/hyiltiz/vim-plugins-profile/archive/master.zip
[vim-plug]: https://github.com/junegunn/vim-plug
[R]: https://cran.r-project.org/
[R:ggplot2]: http://ggplot2.org/
[NeoBundle]: https://github.com/Shougo/neobundle.vim
[Vundle]: https://github.com/VundleVim/Vundle.vim
[Pathogen]: https://github.com/tpope/vim-pathogen

View file

@ -0,0 +1,113 @@
1119.396,000.062,000.062,xptemplate
1119.496,000.076,000.076,xptemplate
1140.987,000.427,000.427,ctrlp.vim
1141.454,001.207,000.780,ctrlp.vim
1142.809,000.242,000.242,nerdtree
1145.360,000.880,000.880,nerdtree
1145.679,000.220,000.220,nerdtree
1145.912,000.152,000.152,nerdtree
1146.257,000.263,000.263,nerdtree
1146.879,000.542,000.542,nerdtree
1147.396,000.432,000.432,nerdtree
1148.209,000.727,000.727,nerdtree
1148.660,000.365,000.365,nerdtree
1149.185,000.441,000.441,nerdtree
1149.356,000.092,000.092,nerdtree
1149.713,000.264,000.264,nerdtree
1150.392,000.597,000.597,nerdtree
1150.512,000.039,000.039,nerdtree
1150.708,000.081,000.081,nerdtree
1151.564,000.764,000.764,nerdtree
1186.868,000.138,000.138,nerdtree
1187.648,000.756,000.756,nerdtree
1191.595,003.776,003.776,nerdtree-git-plugin
1192.024,050.391,039.620,nerdtree
1192.508,000.186,000.186,python-mode
1195.780,003.605,003.336,python-mode
1196.335,000.026,000.026,syntastic
1196.391,000.025,000.025,syntastic
1196.443,000.023,000.023,syntastic
1196.495,000.022,000.022,syntastic
1196.546,000.022,000.022,syntastic
1196.597,000.022,000.022,syntastic
1196.646,000.019,000.019,syntastic
1196.699,000.022,000.022,syntastic
1196.749,000.021,000.021,syntastic
1196.803,000.024,000.024,syntastic
1198.128,000.961,000.961,syntastic
1873.008,000.097,000.097,syntastic
1873.141,000.098,000.098,syntastic
1873.492,000.321,000.321,syntastic
1873.692,000.167,000.167,syntastic
1873.868,000.146,000.146,syntastic
1874.447,000.549,000.549,syntastic
1874.657,000.169,000.169,syntastic
1874.815,000.123,000.123,syntastic
1875.414,000.568,000.568,syntastic
1875.631,000.181,000.181,syntastic
1877.435,680.604,677.224,syntastic
1878.163,000.573,000.573,tabular
1914.257,035.978,035.978,targets.vim
1914.976,000.280,000.280,vim-airline
1915.533,000.269,000.269,vim-airline
1916.759,000.509,000.509,vim-airline
1918.506,004.079,003.021,vim-airline
1919.299,000.660,000.660,vim-commentary
1919.976,000.544,000.544,vim-indent-object
1922.037,001.959,001.959,vim-surround
1925.343,002.746,002.746,xptemplate
1925.961,003.542,000.796,xptemplate
1931.375,002.877,002.877,xptemplate
1934.505,006.199,003.322,xptemplate
1940.498,002.428,002.428,xptemplate
1940.574,006.020,003.592,xptemplate
1941.726,015.414,003.195,xptemplate
1941.880,000.013,000.013,xptemplate
1942.493,000.504,000.504,xptemplate
1944.036,018.030,002.099,xptemplate
1944.253,000.011,000.011,xptemplate
1944.930,000.839,000.828,xptemplate
1945.116,000.012,000.012,xptemplate
1945.269,000.017,000.017,xptemplate
1945.656,000.689,000.660,xptemplate
1946.270,000.020,000.020,xptemplate
1946.459,000.016,000.016,xptemplate
1946.615,000.015,000.015,xptemplate
1946.786,000.014,000.014,xptemplate
1949.058,001.898,001.898,xptemplate
1951.268,001.926,001.926,xptemplate
1953.148,007.263,003.374,xptemplate
1953.455,007.762,000.499,xptemplate
1953.512,000.012,000.012,xptemplate
1953.693,000.011,000.011,xptemplate
1953.897,000.368,000.357,xptemplate
1953.946,000.017,000.017,xptemplate
1958.788,000.419,000.419,tabular
1961.338,003.194,002.775,tabular
1966.767,000.457,000.457,syntastic
1967.539,000.426,000.426,vim-airline
1967.964,000.115,000.115,vim-airline
1968.369,000.093,000.093,vim-airline
1968.696,000.105,000.105,vim-airline
1969.079,000.039,000.039,vim-airline
1969.424,000.174,000.174,vim-airline
1969.998,000.107,000.107,vim-airline
1970.213,000.054,000.054,vim-airline
1970.695,000.246,000.246,vim-airline
1971.010,000.070,000.070,vim-airline
1971.499,000.138,000.138,vim-airline
1971.896,000.206,000.206,vim-airline
1972.257,000.145,000.145,vim-airline
1974.686,000.102,000.102,vim-airline
1975.092,000.171,000.171,vim-airline
1978.750,000.069,000.069,vim-airline
1979.103,000.563,000.494,vim-airline
1992.312,000.161,000.161,vim-airline
1996.890,000.194,000.194,vim-airline
1997.431,000.103,000.103,vim-airline
2058.688,003.475,003.475,xptemplate
2064.100,003.953,003.953,xptemplate
2064.423,004.746,000.793,xptemplate
2071.908,002.975,002.975,xptemplate
2073.086,000.086,000.086,vim-airline
2073.554,000.328,000.328,ctrlp.vim
1 1119.396 000.062 000.062 xptemplate
2 1119.496 000.076 000.076 xptemplate
3 1140.987 000.427 000.427 ctrlp.vim
4 1141.454 001.207 000.780 ctrlp.vim
5 1142.809 000.242 000.242 nerdtree
6 1145.360 000.880 000.880 nerdtree
7 1145.679 000.220 000.220 nerdtree
8 1145.912 000.152 000.152 nerdtree
9 1146.257 000.263 000.263 nerdtree
10 1146.879 000.542 000.542 nerdtree
11 1147.396 000.432 000.432 nerdtree
12 1148.209 000.727 000.727 nerdtree
13 1148.660 000.365 000.365 nerdtree
14 1149.185 000.441 000.441 nerdtree
15 1149.356 000.092 000.092 nerdtree
16 1149.713 000.264 000.264 nerdtree
17 1150.392 000.597 000.597 nerdtree
18 1150.512 000.039 000.039 nerdtree
19 1150.708 000.081 000.081 nerdtree
20 1151.564 000.764 000.764 nerdtree
21 1186.868 000.138 000.138 nerdtree
22 1187.648 000.756 000.756 nerdtree
23 1191.595 003.776 003.776 nerdtree-git-plugin
24 1192.024 050.391 039.620 nerdtree
25 1192.508 000.186 000.186 python-mode
26 1195.780 003.605 003.336 python-mode
27 1196.335 000.026 000.026 syntastic
28 1196.391 000.025 000.025 syntastic
29 1196.443 000.023 000.023 syntastic
30 1196.495 000.022 000.022 syntastic
31 1196.546 000.022 000.022 syntastic
32 1196.597 000.022 000.022 syntastic
33 1196.646 000.019 000.019 syntastic
34 1196.699 000.022 000.022 syntastic
35 1196.749 000.021 000.021 syntastic
36 1196.803 000.024 000.024 syntastic
37 1198.128 000.961 000.961 syntastic
38 1873.008 000.097 000.097 syntastic
39 1873.141 000.098 000.098 syntastic
40 1873.492 000.321 000.321 syntastic
41 1873.692 000.167 000.167 syntastic
42 1873.868 000.146 000.146 syntastic
43 1874.447 000.549 000.549 syntastic
44 1874.657 000.169 000.169 syntastic
45 1874.815 000.123 000.123 syntastic
46 1875.414 000.568 000.568 syntastic
47 1875.631 000.181 000.181 syntastic
48 1877.435 680.604 677.224 syntastic
49 1878.163 000.573 000.573 tabular
50 1914.257 035.978 035.978 targets.vim
51 1914.976 000.280 000.280 vim-airline
52 1915.533 000.269 000.269 vim-airline
53 1916.759 000.509 000.509 vim-airline
54 1918.506 004.079 003.021 vim-airline
55 1919.299 000.660 000.660 vim-commentary
56 1919.976 000.544 000.544 vim-indent-object
57 1922.037 001.959 001.959 vim-surround
58 1925.343 002.746 002.746 xptemplate
59 1925.961 003.542 000.796 xptemplate
60 1931.375 002.877 002.877 xptemplate
61 1934.505 006.199 003.322 xptemplate
62 1940.498 002.428 002.428 xptemplate
63 1940.574 006.020 003.592 xptemplate
64 1941.726 015.414 003.195 xptemplate
65 1941.880 000.013 000.013 xptemplate
66 1942.493 000.504 000.504 xptemplate
67 1944.036 018.030 002.099 xptemplate
68 1944.253 000.011 000.011 xptemplate
69 1944.930 000.839 000.828 xptemplate
70 1945.116 000.012 000.012 xptemplate
71 1945.269 000.017 000.017 xptemplate
72 1945.656 000.689 000.660 xptemplate
73 1946.270 000.020 000.020 xptemplate
74 1946.459 000.016 000.016 xptemplate
75 1946.615 000.015 000.015 xptemplate
76 1946.786 000.014 000.014 xptemplate
77 1949.058 001.898 001.898 xptemplate
78 1951.268 001.926 001.926 xptemplate
79 1953.148 007.263 003.374 xptemplate
80 1953.455 007.762 000.499 xptemplate
81 1953.512 000.012 000.012 xptemplate
82 1953.693 000.011 000.011 xptemplate
83 1953.897 000.368 000.357 xptemplate
84 1953.946 000.017 000.017 xptemplate
85 1958.788 000.419 000.419 tabular
86 1961.338 003.194 002.775 tabular
87 1966.767 000.457 000.457 syntastic
88 1967.539 000.426 000.426 vim-airline
89 1967.964 000.115 000.115 vim-airline
90 1968.369 000.093 000.093 vim-airline
91 1968.696 000.105 000.105 vim-airline
92 1969.079 000.039 000.039 vim-airline
93 1969.424 000.174 000.174 vim-airline
94 1969.998 000.107 000.107 vim-airline
95 1970.213 000.054 000.054 vim-airline
96 1970.695 000.246 000.246 vim-airline
97 1971.010 000.070 000.070 vim-airline
98 1971.499 000.138 000.138 vim-airline
99 1971.896 000.206 000.206 vim-airline
100 1972.257 000.145 000.145 vim-airline
101 1974.686 000.102 000.102 vim-airline
102 1975.092 000.171 000.171 vim-airline
103 1978.750 000.069 000.069 vim-airline
104 1979.103 000.563 000.494 vim-airline
105 1992.312 000.161 000.161 vim-airline
106 1996.890 000.194 000.194 vim-airline
107 1997.431 000.103 000.103 vim-airline
108 2058.688 003.475 003.475 xptemplate
109 2064.100 003.953 003.953 xptemplate
110 2064.423 004.746 000.793 xptemplate
111 2071.908 002.975 002.975 xptemplate
112 2073.086 000.086 000.086 vim-airline
113 2073.554 000.328 000.328 ctrlp.vim

View file

@ -0,0 +1,146 @@
094.676,000.126,000.126,vim-markdown
094.856,000.062,000.062,ultisnips
094.956,000.067,000.067,ultisnips
095.247,000.124,000.124,vim-go
095.582,000.141,000.141,csv.vim
095.974,000.052,000.052,vim-orgmode
096.636,000.453,000.453,Vim-R-plugin
096.767,000.043,000.043,myVimPlugins
165.560,061.841,061.302,vim-colorschemes
171.246,005.245,004.044,vim-colorschemes
204.240,032.481,031.875,vim-vendetta
236.729,032.053,031.360,vim-colorschemes
238.280,000.301,000.301,ctrlp.vim
238.479,000.714,000.413,ctrlp.vim
238.717,000.085,000.085,vim-hugefile
238.924,000.059,000.059,gundo.vim
239.698,000.652,000.652,taglist.vim
239.954,000.126,000.126,vim-quickrun
240.376,000.312,000.312,tabular
240.880,000.123,000.123,ultisnips
240.992,000.492,000.369,ultisnips
241.153,000.048,000.048,vim-snippets
246.485,002.985,002.985,vim-jsbeautify
247.803,001.154,001.154,gitv
248.195,000.248,000.248,vim-go
250.815,002.503,002.503,vim-devicons
251.079,000.137,000.137,vimproc.vim
251.313,000.118,000.118,tabpagebuffer.vim
251.612,000.063,000.063,neocomplete.vim
251.705,000.062,000.062,neocomplete.vim
251.794,000.059,000.059,neocomplete.vim
251.989,000.148,000.148,neocomplete.vim
252.844,000.720,000.720,vimshell.vim
254.078,000.499,000.499,unite.vim
254.243,001.015,000.516,unite.vim
254.500,000.214,000.214,unite.vim
254.624,000.087,000.087,unite.vim
254.788,000.130,000.130,unite.vim
255.131,000.308,000.308,unite.vim
255.421,000.125,000.125,ag.vim
255.623,000.080,000.080,rainbow_parentheses.vim
255.808,000.077,000.077,gist-vim
259.170,003.251,003.251,emmet-vim
259.861,000.493,000.493,NrrwRgn
260.313,000.244,000.244,csv.vim
260.705,000.190,000.190,vim-diff-enhanced
262.892,001.995,001.995,tagbar
270.008,006.759,006.759,nerdcommenter
270.650,000.046,000.046,syntastic
270.718,000.034,000.034,syntastic
270.784,000.034,000.034,syntastic
270.860,000.045,000.045,syntastic
270.967,000.056,000.056,syntastic
271.078,000.057,000.057,syntastic
271.199,000.066,000.066,syntastic
271.294,000.042,000.042,syntastic
271.364,000.037,000.037,syntastic
271.432,000.037,000.037,syntastic
272.614,000.663,000.663,syntastic
284.928,000.070,000.070,syntastic
285.032,000.070,000.070,syntastic
285.302,000.239,000.239,syntastic
285.450,000.117,000.117,syntastic
285.581,000.101,000.101,syntastic
285.971,000.360,000.360,syntastic
286.108,000.103,000.103,syntastic
286.219,000.082,000.082,syntastic
286.586,000.338,000.338,syntastic
286.742,000.125,000.125,syntastic
288.925,017.461,015.193,syntastic
302.454,013.364,013.364,vim-easymotion
303.372,000.724,000.724,vim-endwise
308.525,005.000,005.000,vim-fugitive
309.571,000.903,000.903,vim-surround
310.507,000.791,000.791,vim-speeddating
314.902,004.276,004.276,vim-unimpaired
316.462,001.387,001.387,vim-abolish
316.981,000.392,000.392,vim-tbone
319.444,000.439,000.439,vim-easy-align
319.621,000.057,000.057,goyo.vim
319.839,000.105,000.105,limelight.vim
320.077,000.096,000.096,vim-github-dashboard
321.256,000.169,000.169,vim-gitgutter
322.578,002.354,002.185,vim-gitgutter
322.797,000.093,000.093,promptline.vim
327.683,004.748,004.748,YankRing.vim
328.110,000.305,000.305,numbers.vim
329.199,000.211,000.211,vim-airline
329.828,000.169,000.169,vim-airline
330.710,000.152,000.152,vim-airline
331.429,003.204,002.672,vim-airline
331.697,000.070,000.070,vim-misc
332.295,000.047,000.047,vim-misc
332.912,000.243,000.243,vim-misc
333.942,000.159,000.159,vim-misc
335.410,000.144,000.144,vim-misc
336.197,002.838,002.535,vim-easytags
336.922,000.284,000.284,vim-misc
345.414,000.101,000.101,vim-misc
346.419,000.226,000.226,vim-misc
347.661,000.106,000.106,vim-misc
359.965,000.165,000.165,vim-misc
361.386,000.108,000.108,vim-misc
361.444,029.638,025.520,vim-easytags
374.709,013.094,013.094,vim-online-thesaurus
375.243,000.324,000.324,vim-lexical
375.685,000.329,000.329,vim-wordy
376.175,000.377,000.377,vim-pencil
377.513,001.097,001.097,matchit.zip
377.915,000.229,000.229,myVimPlugins
379.744,000.534,000.534,delimitMate
383.484,005.456,004.922,delimitMate
388.277,000.371,000.371,tabular
390.519,002.959,002.588,tabular
390.904,000.222,000.222,ultisnips
391.435,000.385,000.385,indentLine
395.536,000.376,000.376,vim-airline
396.418,000.228,000.228,vim-airline
397.294,000.117,000.117,vim-airline
397.939,000.106,000.106,vim-airline
398.787,000.220,000.220,vim-airline
400.369,000.202,000.202,vim-airline
401.007,000.131,000.131,vim-airline
401.654,000.157,000.157,vim-airline
402.386,000.212,000.212,vim-airline
403.137,000.120,000.120,vim-airline
403.814,000.198,000.198,vim-airline
404.546,000.111,000.111,vim-airline
405.247,000.216,000.216,vim-airline
405.888,000.130,000.130,vim-airline
406.706,000.212,000.212,vim-airline
407.802,000.567,000.567,vim-airline
408.463,000.125,000.125,vim-airline
413.843,000.355,000.355,vim-airline
416.718,001.577,001.577,vim-airline
421.955,000.154,000.154,vim-airline
422.385,001.488,001.334,vim-colors-pencil
428.686,000.323,000.323,vim-airline
431.392,000.313,000.313,vim-airline
433.190,000.299,000.299,vim-airline
449.554,000.325,000.325,syntastic
451.099,000.266,000.266,vim-gitgutter
451.764,000.282,000.282,vim-gitgutter
452.417,000.210,000.210,vim-gitgutter
463.560,000.272,000.272,vim-airline
463.992,000.299,000.299,ctrlp.vim
1 094.676 000.126 000.126 vim-markdown
2 094.856 000.062 000.062 ultisnips
3 094.956 000.067 000.067 ultisnips
4 095.247 000.124 000.124 vim-go
5 095.582 000.141 000.141 csv.vim
6 095.974 000.052 000.052 vim-orgmode
7 096.636 000.453 000.453 Vim-R-plugin
8 096.767 000.043 000.043 myVimPlugins
9 165.560 061.841 061.302 vim-colorschemes
10 171.246 005.245 004.044 vim-colorschemes
11 204.240 032.481 031.875 vim-vendetta
12 236.729 032.053 031.360 vim-colorschemes
13 238.280 000.301 000.301 ctrlp.vim
14 238.479 000.714 000.413 ctrlp.vim
15 238.717 000.085 000.085 vim-hugefile
16 238.924 000.059 000.059 gundo.vim
17 239.698 000.652 000.652 taglist.vim
18 239.954 000.126 000.126 vim-quickrun
19 240.376 000.312 000.312 tabular
20 240.880 000.123 000.123 ultisnips
21 240.992 000.492 000.369 ultisnips
22 241.153 000.048 000.048 vim-snippets
23 246.485 002.985 002.985 vim-jsbeautify
24 247.803 001.154 001.154 gitv
25 248.195 000.248 000.248 vim-go
26 250.815 002.503 002.503 vim-devicons
27 251.079 000.137 000.137 vimproc.vim
28 251.313 000.118 000.118 tabpagebuffer.vim
29 251.612 000.063 000.063 neocomplete.vim
30 251.705 000.062 000.062 neocomplete.vim
31 251.794 000.059 000.059 neocomplete.vim
32 251.989 000.148 000.148 neocomplete.vim
33 252.844 000.720 000.720 vimshell.vim
34 254.078 000.499 000.499 unite.vim
35 254.243 001.015 000.516 unite.vim
36 254.500 000.214 000.214 unite.vim
37 254.624 000.087 000.087 unite.vim
38 254.788 000.130 000.130 unite.vim
39 255.131 000.308 000.308 unite.vim
40 255.421 000.125 000.125 ag.vim
41 255.623 000.080 000.080 rainbow_parentheses.vim
42 255.808 000.077 000.077 gist-vim
43 259.170 003.251 003.251 emmet-vim
44 259.861 000.493 000.493 NrrwRgn
45 260.313 000.244 000.244 csv.vim
46 260.705 000.190 000.190 vim-diff-enhanced
47 262.892 001.995 001.995 tagbar
48 270.008 006.759 006.759 nerdcommenter
49 270.650 000.046 000.046 syntastic
50 270.718 000.034 000.034 syntastic
51 270.784 000.034 000.034 syntastic
52 270.860 000.045 000.045 syntastic
53 270.967 000.056 000.056 syntastic
54 271.078 000.057 000.057 syntastic
55 271.199 000.066 000.066 syntastic
56 271.294 000.042 000.042 syntastic
57 271.364 000.037 000.037 syntastic
58 271.432 000.037 000.037 syntastic
59 272.614 000.663 000.663 syntastic
60 284.928 000.070 000.070 syntastic
61 285.032 000.070 000.070 syntastic
62 285.302 000.239 000.239 syntastic
63 285.450 000.117 000.117 syntastic
64 285.581 000.101 000.101 syntastic
65 285.971 000.360 000.360 syntastic
66 286.108 000.103 000.103 syntastic
67 286.219 000.082 000.082 syntastic
68 286.586 000.338 000.338 syntastic
69 286.742 000.125 000.125 syntastic
70 288.925 017.461 015.193 syntastic
71 302.454 013.364 013.364 vim-easymotion
72 303.372 000.724 000.724 vim-endwise
73 308.525 005.000 005.000 vim-fugitive
74 309.571 000.903 000.903 vim-surround
75 310.507 000.791 000.791 vim-speeddating
76 314.902 004.276 004.276 vim-unimpaired
77 316.462 001.387 001.387 vim-abolish
78 316.981 000.392 000.392 vim-tbone
79 319.444 000.439 000.439 vim-easy-align
80 319.621 000.057 000.057 goyo.vim
81 319.839 000.105 000.105 limelight.vim
82 320.077 000.096 000.096 vim-github-dashboard
83 321.256 000.169 000.169 vim-gitgutter
84 322.578 002.354 002.185 vim-gitgutter
85 322.797 000.093 000.093 promptline.vim
86 327.683 004.748 004.748 YankRing.vim
87 328.110 000.305 000.305 numbers.vim
88 329.199 000.211 000.211 vim-airline
89 329.828 000.169 000.169 vim-airline
90 330.710 000.152 000.152 vim-airline
91 331.429 003.204 002.672 vim-airline
92 331.697 000.070 000.070 vim-misc
93 332.295 000.047 000.047 vim-misc
94 332.912 000.243 000.243 vim-misc
95 333.942 000.159 000.159 vim-misc
96 335.410 000.144 000.144 vim-misc
97 336.197 002.838 002.535 vim-easytags
98 336.922 000.284 000.284 vim-misc
99 345.414 000.101 000.101 vim-misc
100 346.419 000.226 000.226 vim-misc
101 347.661 000.106 000.106 vim-misc
102 359.965 000.165 000.165 vim-misc
103 361.386 000.108 000.108 vim-misc
104 361.444 029.638 025.520 vim-easytags
105 374.709 013.094 013.094 vim-online-thesaurus
106 375.243 000.324 000.324 vim-lexical
107 375.685 000.329 000.329 vim-wordy
108 376.175 000.377 000.377 vim-pencil
109 377.513 001.097 001.097 matchit.zip
110 377.915 000.229 000.229 myVimPlugins
111 379.744 000.534 000.534 delimitMate
112 383.484 005.456 004.922 delimitMate
113 388.277 000.371 000.371 tabular
114 390.519 002.959 002.588 tabular
115 390.904 000.222 000.222 ultisnips
116 391.435 000.385 000.385 indentLine
117 395.536 000.376 000.376 vim-airline
118 396.418 000.228 000.228 vim-airline
119 397.294 000.117 000.117 vim-airline
120 397.939 000.106 000.106 vim-airline
121 398.787 000.220 000.220 vim-airline
122 400.369 000.202 000.202 vim-airline
123 401.007 000.131 000.131 vim-airline
124 401.654 000.157 000.157 vim-airline
125 402.386 000.212 000.212 vim-airline
126 403.137 000.120 000.120 vim-airline
127 403.814 000.198 000.198 vim-airline
128 404.546 000.111 000.111 vim-airline
129 405.247 000.216 000.216 vim-airline
130 405.888 000.130 000.130 vim-airline
131 406.706 000.212 000.212 vim-airline
132 407.802 000.567 000.567 vim-airline
133 408.463 000.125 000.125 vim-airline
134 413.843 000.355 000.355 vim-airline
135 416.718 001.577 001.577 vim-airline
136 421.955 000.154 000.154 vim-airline
137 422.385 001.488 001.334 vim-colors-pencil
138 428.686 000.323 000.323 vim-airline
139 431.392 000.313 000.313 vim-airline
140 433.190 000.299 000.299 vim-airline
141 449.554 000.325 000.325 syntastic
142 451.099 000.266 000.266 vim-gitgutter
143 451.764 000.282 000.282 vim-gitgutter
144 452.417 000.210 000.210 vim-gitgutter
145 463.560 000.272 000.272 vim-airline
146 463.992 000.299 000.299 ctrlp.vim

View file

@ -0,0 +1,60 @@
96.706 "vim-colorschemes"
31.875 "vim-vendetta"
28.055 "vim-easytags"
18.24 "syntastic"
13.364 "vim-easymotion"
13.094 "vim-online-thesaurus"
9.925 "vim-airline"
6.759 "nerdcommenter"
5.456 "delimitMate"
5 "vim-fugitive"
4.748 "YankRing.vim"
4.276 "vim-unimpaired"
3.271 "tabular"
3.251 "emmet-vim"
3.112 "vim-gitgutter"
2.985 "vim-jsbeautify"
2.503 "vim-devicons"
1.995 "tagbar"
1.754 "unite.vim"
1.653 "vim-misc"
1.387 "vim-abolish"
1.334 "vim-colors-pencil"
1.154 "gitv"
1.097 "matchit.zip"
1.013 "ctrlp.vim"
0.903 "vim-surround"
0.843 "ultisnips"
0.791 "vim-speeddating"
0.724 "vim-endwise"
0.72 "vimshell.vim"
0.652 "taglist.vim"
0.493 "NrrwRgn"
0.453 "Vim-R-plugin"
0.439 "vim-easy-align"
0.392 "vim-tbone"
0.385 "csv.vim"
0.385 "indentLine"
0.377 "vim-pencil"
0.372 "vim-go"
0.332 "neocomplete.vim"
0.329 "vim-wordy"
0.324 "vim-lexical"
0.305 "numbers.vim"
0.272 "myVimPlugins"
0.19 "vim-diff-enhanced"
0.137 "vimproc.vim"
0.126 "vim-markdown"
0.126 "vim-quickrun"
0.125 "ag.vim"
0.118 "tabpagebuffer.vim"
0.105 "limelight.vim"
0.096 "vim-github-dashboard"
0.093 "promptline.vim"
0.085 "vim-hugefile"
0.08 "rainbow_parentheses.vim"
0.077 "gist-vim"
0.059 "gundo.vim"
0.057 "goyo.vim"
0.052 "vim-orgmode"
0.048 "vim-snippets"
1 96.706 vim-colorschemes
2 31.875 vim-vendetta
3 28.055 vim-easytags
4 18.24 syntastic
5 13.364 vim-easymotion
6 13.094 vim-online-thesaurus
7 9.925 vim-airline
8 6.759 nerdcommenter
9 5.456 delimitMate
10 5 vim-fugitive
11 4.748 YankRing.vim
12 4.276 vim-unimpaired
13 3.271 tabular
14 3.251 emmet-vim
15 3.112 vim-gitgutter
16 2.985 vim-jsbeautify
17 2.503 vim-devicons
18 1.995 tagbar
19 1.754 unite.vim
20 1.653 vim-misc
21 1.387 vim-abolish
22 1.334 vim-colors-pencil
23 1.154 gitv
24 1.097 matchit.zip
25 1.013 ctrlp.vim
26 0.903 vim-surround
27 0.843 ultisnips
28 0.791 vim-speeddating
29 0.724 vim-endwise
30 0.72 vimshell.vim
31 0.652 taglist.vim
32 0.493 NrrwRgn
33 0.453 Vim-R-plugin
34 0.439 vim-easy-align
35 0.392 vim-tbone
36 0.385 csv.vim
37 0.385 indentLine
38 0.377 vim-pencil
39 0.372 vim-go
40 0.332 neocomplete.vim
41 0.329 vim-wordy
42 0.324 vim-lexical
43 0.305 numbers.vim
44 0.272 myVimPlugins
45 0.19 vim-diff-enhanced
46 0.137 vimproc.vim
47 0.126 vim-markdown
48 0.126 vim-quickrun
49 0.125 ag.vim
50 0.118 tabpagebuffer.vim
51 0.105 limelight.vim
52 0.096 vim-github-dashboard
53 0.093 promptline.vim
54 0.085 vim-hugefile
55 0.08 rainbow_parentheses.vim
56 0.077 gist-vim
57 0.059 gundo.vim
58 0.057 goyo.vim
59 0.052 vim-orgmode
60 0.048 vim-snippets

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

View file

@ -0,0 +1,223 @@
times in msec
clock self+sourced self: sourced script
clock elapsed: other lines
000.007 000.007: --- VIM STARTING ---
000.074 000.067: Allocated generic buffers
000.337 000.263: locale set
000.353 000.016: GUI prepared
000.356 000.003: clipboard setup
000.363 000.007: window checked
000.793 000.430: inits 1
000.803 000.010: parsing arguments
005.975 005.172: expanding arguments
010.160 004.185: shell init
010.462 000.302: Termcap init
010.505 000.043: inits 2
013.096 002.591: init highlight
013.328 000.143 000.143: sourcing $VIM/vimrc
021.387 007.560 007.560: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/colors/murphy.vim
022.343 000.301 000.301: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
022.800 000.157 000.157: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
023.194 000.315 000.315: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
023.441 001.731 000.958: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/colors/murphy.vim
023.551 001.950 000.219: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/synload.vim
041.821 018.192 018.192: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/filetype.vim
041.872 020.354 000.212: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syntax.vim
041.962 000.012 000.012: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/filetype.vim
042.077 000.050 000.050: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/ftplugin.vim
042.185 000.044 000.044: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/indent.vim
055.716 013.126 013.126: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/ftplugin/man.vim
057.569 001.706 001.706: sourcing /Users/hormetyiltiz/.vim/autoload/plug.vim
070.177 002.043 002.043: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/ftoff.vim
094.676 000.126 000.126: sourcing /Users/hormetyiltiz/.vim/plugged/vim-markdown/ftdetect/markdown.vim
094.856 000.062 000.062: sourcing /Users/hormetyiltiz/.vim/plugged/ultisnips/ftdetect/snippets.vim
094.956 000.067 000.067: sourcing /Users/hormetyiltiz/.vim/plugged/ultisnips/ftdetect/UltiSnips.vim
095.247 000.124 000.124: sourcing /Users/hormetyiltiz/.vim/plugged/vim-go/ftdetect/gofiletype.vim
095.582 000.141 000.141: sourcing /Users/hormetyiltiz/.vim/plugged/csv.vim/ftdetect/csv.vim
095.974 000.052 000.052: sourcing /Users/hormetyiltiz/.vim/plugged/vim-orgmode/ftdetect/org.vim
096.636 000.453 000.453: sourcing /Users/hormetyiltiz/.vim/plugged/Vim-R-plugin/ftdetect/r.vim
096.767 000.043 000.043: sourcing /Users/hormetyiltiz/.vim/plugged/myVimPlugins/ftdetect/gitary.vim
096.992 022.207 021.139: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/filetype.vim
097.462 000.017 000.017: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/ftplugin.vim
097.948 000.025 000.025: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/indent.vim
098.291 000.192 000.192: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/nosyntax.vim
100.315 000.266 000.266: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
101.280 000.255 000.255: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
102.019 000.250 000.250: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
102.415 003.216 002.445: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/colors/murphy.vim
102.595 003.858 000.642: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/synload.vim
102.646 004.607 000.557: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syntax.vim
104.766 000.274 000.274: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
105.573 000.265 000.265: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
165.560 061.841 061.302: sourcing /Users/hormetyiltiz/.vim/plugged/vim-colorschemes/colors/Tomorrow-Night-Bright.vim
167.145 000.304 000.304: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
168.250 000.301 000.301: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
169.342 000.299 000.299: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
170.248 000.297 000.297: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
171.246 005.245 004.044: sourcing /Users/hormetyiltiz/.vim/plugged/vim-colorschemes/colors/holokai.vim
172.953 000.307 000.307: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
173.873 000.299 000.299: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
204.240 032.481 031.875: sourcing /Users/hormetyiltiz/.vim/plugged/vim-vendetta/colors/vendetta.vim
205.872 000.316 000.316: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
206.867 000.377 000.377: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/syntax/syncolor.vim
236.729 032.053 031.360: sourcing /Users/hormetyiltiz/.vim/plugged/vim-colorschemes/colors/jellybeans.vim
237.569 224.190 020.819: sourcing $HOME/.vimrc
237.576 000.147: sourcing vimrc file(s)
238.280 000.301 000.301: sourcing /Users/hormetyiltiz/.vim/plugged/ctrlp.vim/autoload/ctrlp/mrufiles.vim
238.479 000.714 000.413: sourcing /Users/hormetyiltiz/.vim/plugged/ctrlp.vim/plugin/ctrlp.vim
238.717 000.085 000.085: sourcing /Users/hormetyiltiz/.vim/plugged/vim-hugefile/plugin/hugefile.vim
238.924 000.059 000.059: sourcing /Users/hormetyiltiz/.vim/plugged/gundo.vim/plugin/gundo.vim
239.698 000.652 000.652: sourcing /Users/hormetyiltiz/.vim/plugged/taglist.vim/plugin/taglist.vim
239.954 000.126 000.126: sourcing /Users/hormetyiltiz/.vim/plugged/vim-quickrun/plugin/quickrun.vim
240.376 000.312 000.312: sourcing /Users/hormetyiltiz/.vim/plugged/tabular/plugin/Tabular.vim
240.880 000.123 000.123: sourcing /Users/hormetyiltiz/.vim/plugged/ultisnips/autoload/UltiSnips/map_keys.vim
240.992 000.492 000.369: sourcing /Users/hormetyiltiz/.vim/plugged/ultisnips/plugin/UltiSnips.vim
241.153 000.048 000.048: sourcing /Users/hormetyiltiz/.vim/plugged/vim-snippets/plugin/vimsnippets.vim
246.485 002.985 002.985: sourcing /Users/hormetyiltiz/.vim/plugged/vim-jsbeautify/plugin/beautifier.vim
247.803 001.154 001.154: sourcing /Users/hormetyiltiz/.vim/plugged/gitv/plugin/gitv.vim
248.195 000.248 000.248: sourcing /Users/hormetyiltiz/.vim/plugged/vim-go/plugin/go.vim
250.815 002.503 002.503: sourcing /Users/hormetyiltiz/.vim/plugged/vim-devicons/plugin/webdevicons.vim
251.079 000.137 000.137: sourcing /Users/hormetyiltiz/.vim/plugged/vimproc.vim/plugin/vimproc.vim
251.313 000.118 000.118: sourcing /Users/hormetyiltiz/.vim/plugged/tabpagebuffer.vim/plugin/buffer.vim
251.612 000.063 000.063: sourcing /Users/hormetyiltiz/.vim/plugged/neocomplete.vim/plugin/neocomplete/buffer.vim
251.705 000.062 000.062: sourcing /Users/hormetyiltiz/.vim/plugged/neocomplete.vim/plugin/neocomplete/dictionary.vim
251.794 000.059 000.059: sourcing /Users/hormetyiltiz/.vim/plugged/neocomplete.vim/plugin/neocomplete/tag.vim
251.989 000.148 000.148: sourcing /Users/hormetyiltiz/.vim/plugged/neocomplete.vim/plugin/neocomplete.vim
252.844 000.720 000.720: sourcing /Users/hormetyiltiz/.vim/plugged/vimshell.vim/plugin/vimshell.vim
254.078 000.499 000.499: sourcing /Users/hormetyiltiz/.vim/plugged/unite.vim/autoload/unite/custom.vim
254.243 001.015 000.516: sourcing /Users/hormetyiltiz/.vim/plugged/unite.vim/plugin/unite/bookmark.vim
254.500 000.214 000.214: sourcing /Users/hormetyiltiz/.vim/plugged/unite.vim/plugin/unite/buffer.vim
254.624 000.087 000.087: sourcing /Users/hormetyiltiz/.vim/plugged/unite.vim/plugin/unite/history_yank.vim
254.788 000.130 000.130: sourcing /Users/hormetyiltiz/.vim/plugged/unite.vim/plugin/unite/window.vim
255.131 000.308 000.308: sourcing /Users/hormetyiltiz/.vim/plugged/unite.vim/plugin/unite.vim
255.421 000.125 000.125: sourcing /Users/hormetyiltiz/.vim/plugged/ag.vim/plugin/ag.vim
255.623 000.080 000.080: sourcing /Users/hormetyiltiz/.vim/plugged/rainbow_parentheses.vim/plugin/rainbow_parentheses.vim
255.808 000.077 000.077: sourcing /Users/hormetyiltiz/.vim/plugged/gist-vim/plugin/gist.vim
259.170 003.251 003.251: sourcing /Users/hormetyiltiz/.vim/plugged/emmet-vim/plugin/emmet.vim
259.861 000.493 000.493: sourcing /Users/hormetyiltiz/.vim/plugged/NrrwRgn/plugin/NrrwRgn.vim
260.313 000.244 000.244: sourcing /Users/hormetyiltiz/.vim/plugged/csv.vim/plugin/csv.vim
260.705 000.190 000.190: sourcing /Users/hormetyiltiz/.vim/plugged/vim-diff-enhanced/plugin/EnhancedDiff.vim
262.892 001.995 001.995: sourcing /Users/hormetyiltiz/.vim/plugged/tagbar/plugin/tagbar.vim
270.008 006.759 006.759: sourcing /Users/hormetyiltiz/.vim/plugged/nerdcommenter/plugin/NERD_commenter.vim
270.650 000.046 000.046: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/autoloclist.vim
270.718 000.034 000.034: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/balloons.vim
270.784 000.034 000.034: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/checker.vim
270.860 000.045 000.045: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/cursor.vim
270.967 000.056 000.056: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/highlighting.vim
271.078 000.057 000.057: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/loclist.vim
271.199 000.066 000.066: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/modemap.vim
271.294 000.042 000.042: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/notifiers.vim
271.364 000.037 000.037: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/registry.vim
271.432 000.037 000.037: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/signs.vim
272.614 000.663 000.663: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/autoload/syntastic/util.vim
284.928 000.070 000.070: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/autoloclist.vim
285.032 000.070 000.070: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/balloons.vim
285.302 000.239 000.239: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/checker.vim
285.450 000.117 000.117: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/cursor.vim
285.581 000.101 000.101: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/highlighting.vim
285.971 000.360 000.360: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/loclist.vim
286.108 000.103 000.103: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/modemap.vim
286.219 000.082 000.082: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/notifiers.vim
286.586 000.338 000.338: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/registry.vim
286.742 000.125 000.125: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic/signs.vim
288.925 017.461 015.193: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/plugin/syntastic.vim
302.454 013.364 013.364: sourcing /Users/hormetyiltiz/.vim/plugged/vim-easymotion/plugin/EasyMotion.vim
303.372 000.724 000.724: sourcing /Users/hormetyiltiz/.vim/plugged/vim-endwise/plugin/endwise.vim
308.525 005.000 005.000: sourcing /Users/hormetyiltiz/.vim/plugged/vim-fugitive/plugin/fugitive.vim
309.571 000.903 000.903: sourcing /Users/hormetyiltiz/.vim/plugged/vim-surround/plugin/surround.vim
310.507 000.791 000.791: sourcing /Users/hormetyiltiz/.vim/plugged/vim-speeddating/plugin/speeddating.vim
314.902 004.276 004.276: sourcing /Users/hormetyiltiz/.vim/plugged/vim-unimpaired/plugin/unimpaired.vim
316.462 001.387 001.387: sourcing /Users/hormetyiltiz/.vim/plugged/vim-abolish/plugin/abolish.vim
316.981 000.392 000.392: sourcing /Users/hormetyiltiz/.vim/plugged/vim-tbone/plugin/tbone.vim
318.859 001.614 001.614: sourcing /Users/hormetyiltiz/.fzf/plugin/fzf.vim
319.444 000.439 000.439: sourcing /Users/hormetyiltiz/.vim/plugged/vim-easy-align/plugin/easy_align.vim
319.621 000.057 000.057: sourcing /Users/hormetyiltiz/.vim/plugged/goyo.vim/plugin/goyo.vim
319.839 000.105 000.105: sourcing /Users/hormetyiltiz/.vim/plugged/limelight.vim/plugin/limelight.vim
320.077 000.096 000.096: sourcing /Users/hormetyiltiz/.vim/plugged/vim-github-dashboard/plugin/github_dashboard.vim
321.256 000.169 000.169: sourcing /Users/hormetyiltiz/.vim/plugged/vim-gitgutter/autoload/gitgutter/highlight.vim
322.578 002.354 002.185: sourcing /Users/hormetyiltiz/.vim/plugged/vim-gitgutter/plugin/gitgutter.vim
322.797 000.093 000.093: sourcing /Users/hormetyiltiz/.vim/plugged/promptline.vim/plugin/promptline.vim
327.683 004.748 004.748: sourcing /Users/hormetyiltiz/.vim/plugged/YankRing.vim/plugin/yankring.vim
328.110 000.305 000.305: sourcing /Users/hormetyiltiz/.vim/plugged/numbers.vim/plugin/numbers.vim
329.199 000.211 000.211: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline.vim
329.828 000.169 000.169: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/init.vim
330.710 000.152 000.152: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/parts.vim
331.429 003.204 002.672: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/plugin/airline.vim
331.697 000.070 000.070: sourcing /Users/hormetyiltiz/.vim/plugged/vim-misc/plugin/xolox/misc.vim
332.295 000.047 000.047: sourcing /Users/hormetyiltiz/.vim/plugged/vim-misc/autoload/xolox/misc.vim
332.912 000.243 000.243: sourcing /Users/hormetyiltiz/.vim/plugged/vim-misc/autoload/xolox/misc/os.vim
333.942 000.159 000.159: sourcing /Users/hormetyiltiz/.vim/plugged/vim-misc/autoload/xolox/misc/timer.vim
335.410 000.144 000.144: sourcing /Users/hormetyiltiz/.vim/plugged/vim-misc/autoload/xolox/misc/option.vim
336.197 002.838 002.535: sourcing /Users/hormetyiltiz/.vim/plugged/vim-easytags/autoload/xolox/easytags.vim
336.922 000.284 000.284: sourcing /Users/hormetyiltiz/.vim/plugged/vim-misc/autoload/xolox/misc/path.vim
345.414 000.101 000.101: sourcing /Users/hormetyiltiz/.vim/plugged/vim-misc/autoload/xolox/misc/list.vim
346.419 000.226 000.226: sourcing /Users/hormetyiltiz/.vim/plugged/vim-misc/autoload/xolox/misc/msg.vim
347.661 000.106 000.106: sourcing /Users/hormetyiltiz/.vim/plugged/vim-misc/autoload/xolox/misc/escape.vim
359.965 000.165 000.165: sourcing /Users/hormetyiltiz/.vim/plugged/vim-misc/autoload/xolox/misc/version.vim
361.386 000.108 000.108: sourcing /Users/hormetyiltiz/.vim/plugged/vim-misc/autoload/xolox/misc/cursorhold.vim
361.444 029.638 025.520: sourcing /Users/hormetyiltiz/.vim/plugged/vim-easytags/plugin/easytags.vim
374.709 013.094 013.094: sourcing /Users/hormetyiltiz/.vim/plugged/vim-online-thesaurus/plugin/online-thesaurus.vim
375.243 000.324 000.324: sourcing /Users/hormetyiltiz/.vim/plugged/vim-lexical/plugin/lexical.vim
375.685 000.329 000.329: sourcing /Users/hormetyiltiz/.vim/plugged/vim-wordy/plugin/wordy.vim
376.175 000.377 000.377: sourcing /Users/hormetyiltiz/.vim/plugged/vim-pencil/plugin/pencil.vim
377.513 001.097 001.097: sourcing /Users/hormetyiltiz/.vim/plugged/matchit.zip/plugin/matchit.vim
377.915 000.229 000.229: sourcing /Users/hormetyiltiz/.vim/plugged/myVimPlugins/plugin/setcolors.vim
379.744 000.534 000.534: sourcing /Users/hormetyiltiz/.vim/plugged/delimitMate/autoload/delimitMate.vim
383.484 005.456 004.922: sourcing /Users/hormetyiltiz/.vim/plugged/delimitMate/plugin/delimitMate.vim
384.111 000.112 000.112: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/plugin/getscriptPlugin.vim
384.512 000.366 000.366: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/plugin/gzip.vim
384.858 000.310 000.310: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/plugin/logiPat.vim
385.135 000.242 000.242: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/plugin/matchparen.vim
386.060 000.890 000.890: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/plugin/netrwPlugin.vim
386.210 000.083 000.083: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/plugin/rrhelper.vim
386.319 000.064 000.064: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/plugin/spellfile.vim
386.580 000.219 000.219: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/plugin/tarPlugin.vim
386.798 000.153 000.153: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/plugin/tohtml.vim
387.042 000.201 000.201: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/plugin/vimballPlugin.vim
387.395 000.299 000.299: sourcing /usr/local/Cellar/macvim/7.4-77/MacVim.app/Contents/Resources/vim/runtime/plugin/zipPlugin.vim
388.277 000.371 000.371: sourcing /Users/hormetyiltiz/.vim/plugged/tabular/autoload/tabular.vim
390.519 002.959 002.588: sourcing /Users/hormetyiltiz/.vim/plugged/tabular/after/plugin/TabularMaps.vim
390.904 000.222 000.222: sourcing /Users/hormetyiltiz/.vim/plugged/ultisnips/after/plugin/UltiSnips_after.vim
391.435 000.385 000.385: sourcing /Users/hormetyiltiz/.vim/plugged/indentLine/after/plugin/indentLine.vim
391.472 013.357: loading plugins
391.479 000.007: inits 3
394.104 002.625: reading viminfo
394.144 000.040: setting raw mode
394.153 000.009: start termcap
394.233 000.080: clearing screen
395.536 000.376 000.376: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions.vim
396.418 000.228 000.228: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/quickfix.vim
397.294 000.117 000.117: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/unite.vim
397.939 000.106 000.106: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/netrw.vim
398.787 000.220 000.220: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/ctrlp.vim
400.369 000.202 000.202: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/hunks.vim
401.007 000.131 000.131: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/tagbar.vim
401.654 000.157 000.157: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/csv.vim
402.386 000.212 000.212: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/branch.vim
403.137 000.120 000.120: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/syntastic.vim
403.814 000.198 000.198: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/whitespace.vim
404.546 000.111 000.111: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/wordcount.vim
405.247 000.216 000.216: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/tabline.vim
405.888 000.130 000.130: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/autoshow.vim
406.706 000.212 000.212: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/tabs.vim
407.802 000.567 000.567: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/buffers.vim
408.463 000.125 000.125: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/nrrwrgn.vim
413.843 000.355 000.355: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/section.vim
416.718 001.577 001.577: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/highlighter.vim
421.955 000.154 000.154: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/themes.vim
422.385 001.488 001.334: sourcing /Users/hormetyiltiz/.vim/plugged/vim-colors-pencil/autoload/airline/themes/pencil.vim
428.686 000.323 000.323: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/util.vim
431.392 000.313 000.313: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/builder.vim
433.190 000.299 000.299: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/default.vim
448.633 047.617: opening buffers
449.554 000.325 000.325: sourcing /Users/hormetyiltiz/.vim/plugged/syntastic/autoload/syntastic/log.vim
451.099 000.266 000.266: sourcing /Users/hormetyiltiz/.vim/plugged/vim-gitgutter/autoload/gitgutter.vim
451.764 000.282 000.282: sourcing /Users/hormetyiltiz/.vim/plugged/vim-gitgutter/autoload/gitgutter/utility.vim
452.417 000.210 000.210: sourcing /Users/hormetyiltiz/.vim/plugged/vim-gitgutter/autoload/gitgutter/hunk.vim
456.844 007.128: BufEnter autocommands
456.851 000.007: editing files in windows
463.560 000.272 000.272: sourcing /Users/hormetyiltiz/.vim/plugged/vim-airline/autoload/airline/extensions/tabline/buflist.vim
463.992 000.299 000.299: sourcing /Users/hormetyiltiz/.vim/plugged/ctrlp.vim/autoload/ctrlp/utils.vim

View file

@ -0,0 +1,91 @@
# vim-plugins-profile project data parser and plotter script
# Copyright 2015-2017, Hörmet Yiltiz <hyiltiz@github.com>
# Released under GNU GPL version 3 or later.
if("ggplot2" %in% rownames(installed.packages()) == FALSE) {
isOk <- FALSE
# we need to install the ggplot2 package
while(!isOk){
message("Trying in install the required R:ggplot2 package. Confirm? (y/n)")
ANSWER <- readLines(con="stdin", 1)
if (tolower(substr(ANSWER, 1,1)) == "y" ) {
isOk = TRUE
message("Confirmed to install.")
message(" ")
message("==========================================\n")
message("Installing required R dependency package...\n")
# install the required package if not present from the default package repository
install.packages("ggplot2", repos="http://cran.rstudio.com/", dep = TRUE)
message("Installation finished!\n")
message("==========================================\n")
}
else {
isOk = FALSE
message("You did not say yes, so aborting.")
return(-1)
}
}
}
out <- tryCatch(
{
require(ggplot2)
dat <- read.csv("profile.csv", header = FALSE, col.names = c("TraceTime", "SourceTime", "ExecTime", "PluginName"))
dat.n <- aggregate(ExecTime ~ PluginName, data = dat, "sum")
# now plot!
p <- ggplot(dat.n, aes(x = reorder(PluginName, ExecTime), y = ExecTime, fill = ExecTime)) +
geom_bar(stat="identity") +
xlab("Total Execution Time (ms)")
coord_flip()
# add in the colors!
p <- p + scale_fill_continuous(low = "blue", high = "red", na.value = "grey50", trans = "sqrt", guide= FALSE)
# use this if you hate colors to get grey figure
# p <- p + scale_fill_continuous(low = "grey50", high = "grey50", na.value = "grey50", trans = "sqrt", guide= FALSE)
png("result.png", width = 768, height = 768, bg = "transparent")
print(p)
dev.off()
pdf("result.pdf", width = 768, height = 768, bg = "transparent")
print(p)
dev.off()
svg("result.svg", width = 768, height = 768, bg = "transparent")
print(p)
dev.off()
# sort the data, then save .csv for the result
dat.n <- dat.n[order(dat.n$ExecTime, decreasing = TRUE),]
dat.n <- dat.n[,2:1]
png("result.png", width = 1366, height = 768)
print(p)
dev.off()
write.table(dat.n, "result.csv", sep = "\t", row.names = FALSE)
},
error=function(cond) {
message("Package R caused an error!")
message("Here's the original error message:")
message(cond)
# Choose a return value in case of error
return(NA)
},
warning=function(cond) {
message("Package R caused a warning:")
message("Here's the original warning message:")
message(cond)
# Choose a return value in case of warning
return(NULL)
},
finally={
# NOTE:
# Here goes everything that should be executed at the end,
# regardless of success or error.
# Do nothing
}
)

View file

@ -0,0 +1,328 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# vim-profiler - Utility script to profile (n)vim (e.g. startup)
# Copyright © 2015 Benjamin Chrétien
# Copyright © 2017-2018 Hörmet Yiltiz <hyiltiz@github.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function
import os
import sys
import subprocess
import re
import csv
import operator
import argparse
import collections
def to_list(cmd):
if not isinstance(cmd, (list, tuple)):
cmd = cmd.split(' ')
return cmd
def get_exe(cmd):
# FIXME: this assumes that the first word is the executable
return to_list(cmd)[0]
def is_subdir(paths, subdir):
# See: http://stackoverflow.com/a/18115684/1043187
for path in paths:
path = os.path.realpath(path)
subdir = os.path.realpath(subdir)
reldir = os.path.relpath(subdir, path)
if not (reldir == os.pardir or reldir.startswith(os.pardir + os.sep)):
return True
return False
def stdev(arr):
"""
Compute the standard deviation.
"""
if sys.version_info >= (3, 0):
import statistics
return statistics.pstdev(arr)
else:
# Dependency on NumPy
try:
import numpy
return numpy.std(arr, axis=0)
except ImportError:
return 0.
class StartupData(object):
"""
Data for (n)vim startup (timings etc.).
"""
def __init__(self, cmd, log_filename, check_system=False):
super(StartupData, self).__init__()
self.cmd = cmd
self.log_filename = log_filename
self.times = dict()
self.system_dirs = ["/usr", "/usr/local"]
self.generate(check_system)
def generate(self, check_system=False):
"""
Generate startup data.
"""
self.__run_vim()
try:
self.__load_times(check_system)
except RuntimeError:
print("\nNo plugin found. Exiting.")
sys.exit()
if not self.times:
sys.exit()
def __guess_plugin_dir(self, log_txt):
"""
Try to guess the vim directory containing plugins.
"""
candidates = list()
# Get common plugin dir if any
vim_subdirs = "autoload|ftdetect|plugin|syntax"
matches = re.findall("^\d+.\d+\s+\d+.\d+\s+\d+.\d+: "
"sourcing (.+?)/(?:[^/]+/)(?:%s)/[^/]+"
% vim_subdirs, log_txt, re.MULTILINE)
for plugin_dir in matches:
# Ignore system plugins
if not is_subdir(self.system_dirs, plugin_dir):
candidates.append(plugin_dir)
if candidates:
# FIXME: the directory containing vimrc could be returned as well
return collections.Counter(candidates).most_common(1)[0][0]
else:
raise RuntimeError("no user plugin found")
def __load_times(self, check_system=False):
"""
Load startup times for log file.
"""
# Load log file and process it
print("Loading and processing logs...", end="")
with open(self.log_filename, 'r') as log:
log_txt = log.read()
plugin_dir = ""
# Try to guess the folder based on the logs themselves
try:
plugin_dir = self.__guess_plugin_dir(log_txt)
matches = re.findall("^\d+.\d+\s+\d+.\d+\s+(\d+.\d+): "
"sourcing %s/([^/]+)/" % plugin_dir,
log_txt, re.MULTILINE)
for res in matches:
time = res[0]
plugin = res[1]
if plugin in self.times:
self.times[plugin] += float(time)
else:
self.times[plugin] = float(time)
# Catch exception if no plugin was found
except RuntimeError as e:
if not check_system:
raise
else:
plugin_dir = ""
if check_system:
for d in self.system_dirs:
matches = re.findall("^\d+.\d+\s+\d+.\d+\s+(\d+.\d+): "
"sourcing %s/.+/([^/]+.vim)\n" % d,
log_txt, re.MULTILINE)
for res in matches:
time = res[0]
plugin = "*%s" % res[1]
if plugin in self.times:
self.times[plugin] += float(time)
else:
self.times[plugin] = float(time)
print(" done.")
if plugin_dir:
print("Plugin directory: %s" % plugin_dir)
else:
print("No user plugin found.")
if not self.times:
print("No system plugin found.")
def __run_vim(self):
"""
Run vim/nvim to generate startup logs.
"""
print("Running %s to generate startup logs..." % get_exe(self.cmd),
end="")
self.__clean_log()
full_cmd = to_list(self.cmd) + ["--startuptime", self.log_filename,
"-f", "-c", "q"]
subprocess.call(full_cmd, shell=False)
print(" done.")
def __clean_log(self):
"""
Clean log file.
"""
if os.path.isfile(self.log_filename):
os.remove(self.log_filename)
def __del__(self):
"""
Destructor taking care of clean up.
"""
self.__clean_log()
class StartupAnalyzer(object):
"""
Analyze startup times for (n)vim.
"""
def __init__(self, param):
super(StartupAnalyzer, self).__init__()
self.runs = param.runs
self.cmd = param.cmd
self.raw_data = [StartupData(self.cmd, "vim_%i.log" % (i+1),
check_system=param.check_system)
for i in range(self.runs)]
self.data = self.process_data()
def process_data(self):
"""
Merge startup times for each plugin.
"""
return {k: [d.times[k] for d in self.raw_data]
for k in self.raw_data[0].times.keys()}
def average_data(self):
"""
Return average times for each plugin.
"""
return {k: sum(v)/len(v) for k, v in self.data.items()}
def stdev_data(self):
"""
Return standard deviation for each plugin.
"""
return {k: stdev(v) for k, v in self.data.items()}
def plot(self):
"""
Plot startup data.
"""
import pylab
print("Plotting result...", end="")
avg_data = self.average_data()
avg_data = self.__sort_data(avg_data, False)
if len(self.raw_data) > 1:
err = self.stdev_data()
sorted_err = [err[k] for k in list(zip(*avg_data))[0]]
else:
sorted_err = None
pylab.barh(range(len(avg_data)), list(zip(*avg_data))[1],
xerr=sorted_err, align='center', alpha=0.4)
pylab.yticks(range(len(avg_data)), list(zip(*avg_data))[0])
pylab.xlabel("Average startup time (ms)")
pylab.ylabel("Plugins")
pylab.show()
print(" done.")
def export(self, output_filename="result.csv"):
"""
Write sorted result to file.
"""
assert len(self.data) > 0
print("Writing result to %s..." % output_filename, end="")
with open(output_filename, 'w') as fp:
writer = csv.writer(fp, delimiter='\t')
# Compute average times
avg_data = self.average_data()
# Sort by average time
for name, avg_time in self.__sort_data(avg_data):
writer.writerow(["%.3f" % avg_time, name])
print(" done.")
def print_summary(self, n):
"""
Print summary of startup times for plugins.
"""
title = "Top %i plugins slowing %s's startup" % (n, get_exe(self.cmd))
length = len(title)
print(''.center(length, '='))
print(title)
print(''.center(length, '='))
# Compute average times
avg_data = self.average_data()
# Sort by average time
rank = 0
for name, time in self.__sort_data(avg_data)[:n]:
rank += 1
print("%i\t%7.3f %s" % (rank, time, name))
print(''.center(length, '='))
@staticmethod
def __sort_data(d, reverse=True):
"""
Sort data by decreasing time.
"""
return sorted(d.items(), key=operator.itemgetter(1), reverse=reverse)
def main():
parser = argparse.ArgumentParser(
description='Analyze startup times of vim/neovim plugins.')
parser.add_argument("-o", dest="csv", type=str,
help="Export result to a csv file")
parser.add_argument("-p", dest="plot", action='store_true',
help="Plot result as a bar chart")
parser.add_argument("-s", dest="check_system", action='store_true',
help="Consider system plugins as well (marked with *)")
parser.add_argument("-n", dest="n", type=int, default=10,
help="Number of plugins to list in the summary")
parser.add_argument("-r", dest="runs", type=int, default=1,
help="Number of runs (for average/standard deviation)")
parser.add_argument(dest="cmd", nargs=argparse.REMAINDER, type=str, default="vim",
help="vim/neovim executable or command")
# Parse CLI arguments
args = parser.parse_args()
output_filename = args.csv
n = args.n
# Command (default = vim)
if args.cmd == []:
args.cmd = "vim"
# Run analysis
analyzer = StartupAnalyzer(args)
if n > 0:
analyzer.print_summary(n)
if output_filename is not None:
analyzer.export(output_filename)
if args.plot:
analyzer.plot()
if __name__ == "__main__":
main()

View file

@ -0,0 +1,59 @@
#!/usr/bin/env ruby
# encoding: utf-8
# Copyright 2015-2018, Hörmet Yiltiz <hyiltiz@github.com>
# Released under GNU GPL version 3 or later.
# Users can pass "nvim" as a first argument to use neovim.
vim = ARGV.first || 'vim'
puts "Testing #{vim} performance..."
PLOT_WIDTH = 120
LOG = "vim-plugins-profile.#{$$}.log"
XDG_CONFIG_HOME = ENV['XDG_CONFIG_HOME'] || File.join(ENV['HOME'], '.config')
VIMFILES_DIR = vim == "nvim" ? File.join(XDG_CONFIG_HOME, 'nvim') : File.join(ENV['HOME'], '.vim')
puts "Assuming your vimfiles folder is #{VIMFILES_DIR}."
puts "Generating #{vim} startup profile..."
system(vim, '--startuptime', LOG, '-c', 'q')
# detect plugin manager
plug_dir=""
if File.directory? File.join(VIMFILES_DIR, 'plugged')
puts "vim-plug has been detected."
plug_dir="plugged"
elsif File.directory? File.join(VIMFILES_DIR, 'bundle')
puts "NeoBundle/Vundle/Pathogen has been detected."
plug_dir="bundle"
else
puts "Cannot tell your plugin-manager. Adjust this script to meet your own needs for now."
puts "Cue: `plug_dir` variable would be a good starting place."
exit 1
end
# parse
exec_times_by_name = Hash.new(0)
lines = File.readlines(LOG).select { |line| line =~ /sourcing.*#{Regexp.escape(plug_dir)}/ }
lines.each do |line|
trace_time, source_time, exec_time, _, path = line.split(' ')
relative_path = path.gsub(File.join(VIMFILES_DIR, plug_dir) + '/', '')
name = File.basename(relative_path.split('/')[0], '.vim')
time = exec_time.to_f
exec_times_by_name[name] += time
end
# plot
max = exec_times_by_name.values.max
relatives = exec_times_by_name.reduce({}) do |hash, (name, time)|
hash.merge!(name => time/max.to_f)
end
max_name_length = relatives.keys.map(&:length).max
puts
Hash[ relatives.sort_by { |k, v| -v } ].each do |name, rel_time|
time = exec_times_by_name[name]
puts "#{name.rjust(max_name_length)}: (#{time.round(3).to_s.ljust(5)}ms) #{'*' * (rel_time*PLOT_WIDTH)}"
end
File.delete(LOG)

View file

@ -0,0 +1,85 @@
#! /bin/bash
# Copyright 2015-2018, Hörmet Yiltiz <hyiltiz@github.com>
# Released under GNU GPL version 3 or later.
set -eu
# set -x
echo "Generating vim startup profile..."
logfile="vim.log"
if [ -f $logfile ]; then
# clear the log file first
rm $logfile
fi
if [[ $# -eq 0 ]]; then
vim --startuptime $logfile -c q
else
vim --startuptime $logfile $1
fi
echo 'Assuming your vimfiles folder as `~/.vim/`'
vimfilesDir="$HOME/.vim/"
plugDir=""
if [ -d "${vimfilesDir}plugged" ]; then
echo "vim-plug has been detected."
plugDir="plugged"
elif [ -d "${vimfilesDir}bundle" ]; then
echo "NeoBundle/Vundle/Pathogen has been detected."
plugDir="bundle"
else
echo "Cannot tell your plugin-manager. Adjust this bash script\n"
echo "to meet your own needs for now."
echo 'Cue: `plugDir` variable would be a good starting place.'
exit 1
fi
echo "Parsing vim startup profile..."
# logfile=hi.log
# cat $logfile
grep $plugDir $logfile > tmp.log
awk -F\: '{print $1}' tmp.log > tmp1.log
awk -F\: '{print $2}' tmp.log | awk -F\: '{print $2}' tmp.log | sed "s/.*${plugDir}\///g"|sed 's/\/.*//g' > tmp2.log
paste -d ',' tmp1.log tmp2.log | tr -s ' ' ',' > profile.csv
rm tmp.log tmp1.log tmp2.log
rm $logfile
# Let's do the R magic!
echo "Crunching data and generating profile plot ..."
# Check if R is available
echo " "
type R > /dev/null 2>&1 || { echo >&2 "Package R is required but it's not installed. \nPlease install R using your package manager, \nor check out cran.r-project.org for instructions. \nAborting."; exit 1; }
# Still here? Great! Let's move on!
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
R --vanilla --quiet --slave --file="$DIR/vim-plugins-profile-plot.R"
#R --vanilla --file="vim-plugins-profile-plot.R" # or use this for debugging
# we use result.csv, which is saved from R
# delete profile.csv since it is used to feed into R
rm profile.csv
echo " "
echo 'Your plugins startup profile graph is saved '
echo 'as `result.png` under current directory.'
echo " "
echo "=========================================="
echo "Top 10 Plugins That Slows Down Vim Startup"
echo "=========================================="
cat -n result.csv |head -n 10 # change this 10 to see more in this `Top List`
echo "=========================================="
echo "Done!"
echo " "